Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: base/test/test_timeouts.h

Issue 6685099: Removing command_execution_timeout_ms in favor of action_max_timeout_ms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/test/test_switches.cc ('k') | base/test/test_timeouts.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TEST_TEST_TIMEOUTS_H_ 5 #ifndef BASE_TEST_TEST_TIMEOUTS_H_
6 #define BASE_TEST_TEST_TIMEOUTS_H_ 6 #define BASE_TEST_TEST_TIMEOUTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 // Returns common timeouts to use in tests. Makes it possible to adjust 10 // Returns common timeouts to use in tests. Makes it possible to adjust
11 // the timeouts for different environments (like Valgrind). 11 // the timeouts for different environments (like Valgrind).
(...skipping 16 matching lines...) Expand all
28 static int action_max_timeout_ms() { return action_max_timeout_ms_; } 28 static int action_max_timeout_ms() { return action_max_timeout_ms_; }
29 29
30 // Timeout for a large test that may take a few minutes to run. 30 // Timeout for a large test that may take a few minutes to run.
31 static int large_test_timeout_ms() { return large_test_timeout_ms_; } 31 static int large_test_timeout_ms() { return large_test_timeout_ms_; }
32 32
33 // Timeout for a huge test (like running a layout test inside the browser). 33 // Timeout for a huge test (like running a layout test inside the browser).
34 // Do not use unless absolutely necessary - try to make the test smaller. 34 // Do not use unless absolutely necessary - try to make the test smaller.
35 // Do not use multiple times in a single test. 35 // Do not use multiple times in a single test.
36 static int huge_test_timeout_ms() { return huge_test_timeout_ms_; } 36 static int huge_test_timeout_ms() { return huge_test_timeout_ms_; }
37 37
38 // Timeout to use for AutomationProxy. Do not use in other places.
39 // TODO(phajdan.jr): Remove command_execution_timeout_ms.
40 static int command_execution_timeout_ms() {
41 return command_execution_timeout_ms_;
42 }
43
44 // Timeout to wait for a process to terminate. 38 // Timeout to wait for a process to terminate.
45 static int wait_for_terminate_timeout_ms() { 39 static int wait_for_terminate_timeout_ms() {
46 return wait_for_terminate_timeout_ms_; 40 return wait_for_terminate_timeout_ms_;
47 } 41 }
48 42
49 // Timeout to wait for a live operation to complete. Used by tests that access 43 // Timeout to wait for a live operation to complete. Used by tests that access
50 // external services. 44 // external services.
51 static int live_operation_timeout_ms() { 45 static int live_operation_timeout_ms() {
52 return live_operation_timeout_ms_; 46 return live_operation_timeout_ms_;
53 } 47 }
54 48
55 private: 49 private:
56 static bool initialized_; 50 static bool initialized_;
57 51
58 static int tiny_timeout_ms_; 52 static int tiny_timeout_ms_;
59 static int action_timeout_ms_; 53 static int action_timeout_ms_;
60 static int action_max_timeout_ms_; 54 static int action_max_timeout_ms_;
61 static int large_test_timeout_ms_; 55 static int large_test_timeout_ms_;
62 static int huge_test_timeout_ms_; 56 static int huge_test_timeout_ms_;
63 static int command_execution_timeout_ms_;
64 static int wait_for_terminate_timeout_ms_; 57 static int wait_for_terminate_timeout_ms_;
65 static int live_operation_timeout_ms_; 58 static int live_operation_timeout_ms_;
66 59
67 DISALLOW_IMPLICIT_CONSTRUCTORS(TestTimeouts); 60 DISALLOW_IMPLICIT_CONSTRUCTORS(TestTimeouts);
68 }; 61 };
69 62
70 #endif // BASE_TEST_TEST_TIMEOUTS_H_ 63 #endif // BASE_TEST_TEST_TIMEOUTS_H_
OLDNEW
« no previous file with comments | « base/test/test_switches.cc ('k') | base/test/test_timeouts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698