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

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

Issue 2515573003: Make test filters play nice (Closed)
Patch Set: Make test filters play nice Created 4 years 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 | « no previous file | base/test/launcher/test_launcher.cc » ('j') | base/test/launcher/test_launcher.cc » ('J')
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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 TestLauncherDelegate* launcher_delegate_; 175 TestLauncherDelegate* launcher_delegate_;
176 176
177 // Support for outer sharding, just like gtest does. 177 // Support for outer sharding, just like gtest does.
178 int32_t total_shards_; // Total number of outer shards, at least one. 178 int32_t total_shards_; // Total number of outer shards, at least one.
179 int32_t shard_index_; // Index of shard the launcher is to run. 179 int32_t shard_index_; // Index of shard the launcher is to run.
180 180
181 int cycles_; // Number of remaining test itreations, or -1 for infinite. 181 int cycles_; // Number of remaining test itreations, or -1 for infinite.
182 182
183 // Test filters (empty means no filter). 183 // Test filters (empty means no filter).
184 std::vector<std::string> positive_test_filter_gtest_;
Paweł Hajdan Jr. 2016/11/28 12:56:14 nit: I'd suggest "flag", "cmdline", or similar suf
katthomas 2016/11/29 21:38:26 Acknowledged.
185 std::vector<std::string> positive_test_filter_file_;
184 std::vector<std::string> positive_test_filter_; 186 std::vector<std::string> positive_test_filter_;
Paweł Hajdan Jr. 2016/11/28 12:56:14 Do we need this old variable? If yes, why?
katthomas 2016/11/29 21:38:26 Yes, it is still used.
185 std::vector<std::string> negative_test_filter_; 187 std::vector<std::string> negative_test_filter_;
Dirk Pranke 2016/11/29 02:07:15 Even though you only need a single negative_test_f
katthomas 2016/11/29 21:38:26 Done.
186 188
187 // Tests to use (cached result of TestLauncherDelegate::GetTests). 189 // Tests to use (cached result of TestLauncherDelegate::GetTests).
188 std::vector<TestIdentifier> tests_; 190 std::vector<TestIdentifier> tests_;
189 191
190 // Number of tests found in this binary. 192 // Number of tests found in this binary.
191 size_t test_found_count_; 193 size_t test_found_count_;
192 194
193 // Number of tests started in this iteration. 195 // Number of tests started in this iteration.
194 size_t test_started_count_; 196 size_t test_started_count_;
195 197
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DISALLOW_COPY_AND_ASSIGN(TestLauncher); 237 DISALLOW_COPY_AND_ASSIGN(TestLauncher);
236 }; 238 };
237 239
238 // Extract part from |full_output| that applies to |result|. 240 // Extract part from |full_output| that applies to |result|.
239 std::string GetTestOutputSnippet(const TestResult& result, 241 std::string GetTestOutputSnippet(const TestResult& result,
240 const std::string& full_output); 242 const std::string& full_output);
241 243
242 } // namespace base 244 } // namespace base
243 245
244 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ 246 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/launcher/test_launcher.cc » ('j') | base/test/launcher/test_launcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698