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

Side by Side Diff: base/test/launcher/test_launcher.h

Issue 1544113002: Switch to standard integer types in base/test/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « base/test/histogram_tester.cc ('k') | base/test/launcher/test_launcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LAUNCHER_TEST_LAUNCHER_H_ 5 #ifndef BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <set> 11 #include <set>
9 #include <string> 12 #include <string>
10 13
11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
13 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h"
14 #include "base/test/gtest_util.h" 17 #include "base/test/gtest_util.h"
15 #include "base/test/launcher/test_result.h" 18 #include "base/test/launcher/test_result.h"
16 #include "base/test/launcher/test_results_tracker.h" 19 #include "base/test/launcher/test_results_tracker.h"
17 #include "base/time/time.h" 20 #include "base/time/time.h"
18 #include "base/timer/timer.h" 21 #include "base/timer/timer.h"
19 22
20 namespace testing { 23 namespace testing {
21 class TestCase; 24 class TestCase;
22 class TestInfo; 25 class TestInfo;
23 } 26 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Make sure we don't accidentally call the wrong methods e.g. on the worker 147 // Make sure we don't accidentally call the wrong methods e.g. on the worker
145 // pool thread. With lots of callbacks used this is non-trivial. 148 // pool thread. With lots of callbacks used this is non-trivial.
146 // Should be the first member so that it's destroyed last: when destroying 149 // Should be the first member so that it's destroyed last: when destroying
147 // other members, especially the worker pool, we may check the code is running 150 // other members, especially the worker pool, we may check the code is running
148 // on the correct thread. 151 // on the correct thread.
149 ThreadChecker thread_checker_; 152 ThreadChecker thread_checker_;
150 153
151 TestLauncherDelegate* launcher_delegate_; 154 TestLauncherDelegate* launcher_delegate_;
152 155
153 // Support for outer sharding, just like gtest does. 156 // Support for outer sharding, just like gtest does.
154 int32 total_shards_; // Total number of outer shards, at least one. 157 int32_t total_shards_; // Total number of outer shards, at least one.
155 int32 shard_index_; // Index of shard the launcher is to run. 158 int32_t shard_index_; // Index of shard the launcher is to run.
156 159
157 int cycles_; // Number of remaining test itreations, or -1 for infinite. 160 int cycles_; // Number of remaining test itreations, or -1 for infinite.
158 161
159 // Test filters (empty means no filter). 162 // Test filters (empty means no filter).
160 std::vector<std::string> positive_test_filter_; 163 std::vector<std::string> positive_test_filter_;
161 std::vector<std::string> negative_test_filter_; 164 std::vector<std::string> negative_test_filter_;
162 165
163 // Tests to use (cached result of TestLauncherDelegate::GetTests). 166 // Tests to use (cached result of TestLauncherDelegate::GetTests).
164 std::vector<TestIdentifier> tests_; 167 std::vector<TestIdentifier> tests_;
165 168
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 DISALLOW_COPY_AND_ASSIGN(TestLauncher); 212 DISALLOW_COPY_AND_ASSIGN(TestLauncher);
210 }; 213 };
211 214
212 // Extract part from |full_output| that applies to |result|. 215 // Extract part from |full_output| that applies to |result|.
213 std::string GetTestOutputSnippet(const TestResult& result, 216 std::string GetTestOutputSnippet(const TestResult& result,
214 const std::string& full_output); 217 const std::string& full_output);
215 218
216 } // namespace base 219 } // namespace base
217 220
218 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ 221 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « base/test/histogram_tester.cc ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698