diff options
author | 2015-08-04 08:55:12 -0700 | |
---|---|---|
committer | 2015-08-04 08:55:12 -0700 | |
commit | 7b9ed35a2c0bc8d9c80492531443100d132f7489 (patch) | |
tree | 762ceb5834a28bb4a3c1437f97dcbdb9d009b78f /test/core/util/test_config.h | |
parent | 98dd83ec4e8fa87875df82ca406a43e12ed06b6c (diff) |
Allow fixtures to specify slowdown factors, use it for grpc_trace tests
Diffstat (limited to 'test/core/util/test_config.h')
-rw-r--r-- | test/core/util/test_config.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/core/util/test_config.h b/test/core/util/test_config.h index 7028ade7b2..b2cc40bb47 100644 --- a/test/core/util/test_config.h +++ b/test/core/util/test_config.h @@ -48,8 +48,11 @@ extern "C" { #define GRPC_TEST_SLOWDOWN_MACHINE_FACTOR 1.0 #endif -#define GRPC_TEST_SLOWDOWN_FACTOR \ - (GRPC_TEST_SLOWDOWN_BUILD_FACTOR * GRPC_TEST_SLOWDOWN_MACHINE_FACTOR) +extern double g_fixture_slowdown_factor; + +#define GRPC_TEST_SLOWDOWN_FACTOR \ + (GRPC_TEST_SLOWDOWN_BUILD_FACTOR * GRPC_TEST_SLOWDOWN_MACHINE_FACTOR * \ + g_fixture_slowdown_factor) #define GRPC_TIMEOUT_SECONDS_TO_DEADLINE(x) \ gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), \ |