Add TestEnvironment to tests
@ -27,6 +27,8 @@
#include <grpcpp/support/slice.h>
#include <gtest/gtest.h>
#include "test/core/util/test_config.h"
namespace grpc {
static internal::GrpcLibraryInitializer g_gli_initializer;
@ -125,6 +127,7 @@ TEST_F(ByteBufferTest, SerializationMakesCopy) {
} // namespace grpc
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
::testing::InitGoogleTest(&argc, argv);
int ret = RUN_ALL_TESTS();
return ret;
@ -21,6 +21,7 @@
#include "src/proto/grpc/status/status.pb.h"
#include "src/proto/grpc/testing/echo_messages.pb.h"
namespace {
@ -118,6 +119,7 @@ TEST(SetTest, ValidScopeErrorCode) {
return RUN_ALL_TESTS();
}
@ -22,6 +22,8 @@
@ -197,6 +199,7 @@ TEST_F(StringRefTest, ComparisonOperators) {
@ -20,6 +20,8 @@
#include <grpcpp/support/time.h>
using std::chrono::duration_cast;
using std::chrono::microseconds;
using std::chrono::system_clock;
@ -64,6 +66,7 @@ TEST_F(TimeTest, InfFuture) {