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

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

Issue 7055007: GTTF: Remove wait_for_terminate_timeout_ms in favor of action_max_timeout_ms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « no previous file | 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) 2011 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
(...skipping 17 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 wait for a process to terminate.
39 static int wait_for_terminate_timeout_ms() {
40 return wait_for_terminate_timeout_ms_;
41 }
42
43 // Timeout to wait for a live operation to complete. Used by tests that access 38 // Timeout to wait for a live operation to complete. Used by tests that access
44 // external services. 39 // external services.
45 static int live_operation_timeout_ms() { 40 static int live_operation_timeout_ms() {
46 return live_operation_timeout_ms_; 41 return live_operation_timeout_ms_;
47 } 42 }
48 43
49 private: 44 private:
50 static bool initialized_; 45 static bool initialized_;
51 46
52 static int tiny_timeout_ms_; 47 static int tiny_timeout_ms_;
53 static int action_timeout_ms_; 48 static int action_timeout_ms_;
54 static int action_max_timeout_ms_; 49 static int action_max_timeout_ms_;
55 static int large_test_timeout_ms_; 50 static int large_test_timeout_ms_;
56 static int huge_test_timeout_ms_; 51 static int huge_test_timeout_ms_;
57 static int wait_for_terminate_timeout_ms_;
58 static int live_operation_timeout_ms_; 52 static int live_operation_timeout_ms_;
59 53
60 DISALLOW_IMPLICIT_CONSTRUCTORS(TestTimeouts); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(TestTimeouts);
61 }; 55 };
62 56
63 #endif // BASE_TEST_TEST_TIMEOUTS_H_ 57 #endif // BASE_TEST_TEST_TIMEOUTS_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/test_timeouts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698