diff options
Diffstat (limited to 'base/test')
-rw-r--r-- | base/test/test_switches.cc | 2 | ||||
-rw-r--r-- | base/test/test_switches.h | 1 | ||||
-rw-r--r-- | base/test/test_timeouts.cc | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/base/test/test_switches.cc b/base/test/test_switches.cc index d4491ee..7116108 100644 --- a/base/test/test_switches.cc +++ b/base/test/test_switches.cc @@ -10,6 +10,8 @@ const char switches::kLiveOperationTimeout[] = "live-operation-timeout"; // Time (in milliseconds) that the tests should wait before timing out. // TODO(phajdan.jr): Clean up the switch names. const char switches::kTestLargeTimeout[] = "test-large-timeout"; +// TODO(phajdan.jr): 'Fix callers and remove --test-terminate-timeout. +const char switches::kTestTerminateTimeout[] = "test-terminate-timeout"; const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; diff --git a/base/test/test_switches.h b/base/test/test_switches.h index 81891cb6..5e4e8e2 100644 --- a/base/test/test_switches.h +++ b/base/test/test_switches.h @@ -11,6 +11,7 @@ namespace switches { // alongside the definition of their values in the .cc file. extern const char kLiveOperationTimeout[]; extern const char kTestLargeTimeout[]; +extern const char kTestTerminateTimeout[]; extern const char kTestTinyTimeout[]; extern const char kUiTestActionTimeout[]; extern const char kUiTestActionMaxTimeout[]; diff --git a/base/test/test_timeouts.cc b/base/test/test_timeouts.cc index 6d7b96b..8de529d 100644 --- a/base/test/test_timeouts.cc +++ b/base/test/test_timeouts.cc @@ -66,6 +66,8 @@ void TestTimeouts::Initialize() { &action_timeout_ms_); InitializeTimeout(switches::kUiTestActionMaxTimeout, action_timeout_ms_, &action_max_timeout_ms_); + // TODO(phajdan.jr): Fix callers and remove kTestTerminateTimeout. + InitializeTimeout(switches::kTestTerminateTimeout, &action_max_timeout_ms_); InitializeTimeout(switches::kTestLargeTimeout, action_max_timeout_ms_, &large_test_timeout_ms_); InitializeTimeout(switches::kUiTestTimeout, large_test_timeout_ms_, |