Add TestEnvironment to tests
@ -20,6 +20,8 @@
#include <grpcpp/completion_queue.h>
#include <gtest/gtest.h>
#include "test/core/util/test_config.h"
namespace grpc {
namespace {
@ -37,6 +39,7 @@ TEST_F(CodegenTestFull, Init) {
} // namespace grpc
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
@ -18,6 +18,8 @@
@ -29,6 +31,7 @@ TEST_F(CodegenTestMinimal, Build) {}
@ -33,6 +33,7 @@
#include "src/proto/grpc/lb/v1/load_reporter.grpc.pb.h"
#include "src/proto/grpc/testing/echo.grpc.pb.h"
#include "test/core/util/port.h"
namespace testing {
@ -185,6 +186,7 @@ TEST_F(ServerLoadReportingEnd2endTest, BasicReport) {
@ -20,6 +20,7 @@
#include <grpc/support/log.h>
#include "test/cpp/qps/benchmark_config.h"
#include "test/cpp/qps/driver.h"
#include "test/cpp/qps/report.h"
@ -65,9 +66,9 @@ static void RunSynchronousUnaryPingPong() {
grpc::testing::InitTest(&argc, &argv, true);
grpc::testing::RunSynchronousUnaryPingPong();
return 0;