convert more tests

pull/17359/head
yang-g 6 years ago
parent e75fc243da
commit 0e11f2ebd0
  1. 6
      test/core/fling/client.cc
  2. 6
      test/core/memory_usage/client.cc
  3. 2
      test/core/memory_usage/server.cc

@ -158,11 +158,11 @@ int main(int argc, char** argv) {
gpr_timers_set_log_filename("latency_trace.fling_client.txt");
grpc_init();
GPR_ASSERT(argc >= 1);
fake_argv[0] = argv[0];
grpc_test_init(1, fake_argv);
grpc::testing::TestEnvironment env(1, fake_argv);
grpc_init();
int warmup_seconds = 1;
int benchmark_seconds = 5;

@ -193,11 +193,11 @@ int main(int argc, char** argv) {
gpr_cmdline* cl;
grpc_event event;
grpc_init();
GPR_ASSERT(argc >= 1);
fake_argv[0] = argv[0];
grpc_test_init(1, fake_argv);
grpc::testing::TestEnvironment env(1, fake_argv);
grpc_init();
int warmup_iterations = 100;
int benchmark_iterations = 1000;

@ -162,7 +162,7 @@ int main(int argc, char** argv) {
GPR_ASSERT(argc >= 1);
fake_argv[0] = argv[0];
grpc_test_init(1, fake_argv);
grpc::testing::TestEnvironment env(1, fake_argv);
grpc_init();
srand(static_cast<unsigned>(clock()));

Loading…
Cancel
Save