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_launcher.h

Issue 19925003: WIP - command line experiment Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/command_line.cc ('k') | base/test/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_TEST_LAUNCHER_H_ 5 #ifndef BASE_TEST_TEST_LAUNCHER_H_
6 #define BASE_TEST_TEST_LAUNCHER_H_ 6 #define BASE_TEST_TEST_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 14
15 class CommandLine; 15 class CommandLine;
16 16
17 namespace testing { 17 namespace testing {
18 class TestCase; 18 class TestCase;
19 class TestInfo; 19 class TestInfo;
20 } 20 }
21 21
22 namespace base { 22 namespace base {
23 23
24 namespace {
25
24 // Constants for GTest command-line flags. 26 // Constants for GTest command-line flags.
25 extern const char kGTestFilterFlag[]; 27 const char kGTestFilterFlag[] = "gtest_filter";
26 extern const char kGTestListTestsFlag[]; 28 const char kGTestListTestsFlag[] = "gtest_list_tests";
27 extern const char kGTestRepeatFlag[]; 29 const char kGTestRepeatFlag[] = "gtest_repeat";
28 extern const char kGTestRunDisabledTestsFlag[]; 30 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests";
29 extern const char kGTestOutputFlag[]; 31 const char kGTestOutputFlag[] = "gtest_output";
32 const char kHelpFlag[] = "help";
33
34 } // namespace
30 35
31 // Structure containing result of a single test. 36 // Structure containing result of a single test.
32 struct TestResult { 37 struct TestResult {
33 TestResult(); 38 TestResult();
34 39
35 // Name of the test case (before the dot, e.g. "A" for test "A.B"). 40 // Name of the test case (before the dot, e.g. "A" for test "A.B").
36 std::string test_case_name; 41 std::string test_case_name;
37 42
38 // Name of the test (after the dot, e.g. "B" for test "A.B"). 43 // Name of the test (after the dot, e.g. "B" for test "A.B").
39 std::string test_name; 44 std::string test_name;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 88
84 // Launches GTest-based tests from the current executable 89 // Launches GTest-based tests from the current executable
85 // using |launcher_delegate|. 90 // using |launcher_delegate|.
86 int LaunchTests(TestLauncherDelegate* launcher_delegate, 91 int LaunchTests(TestLauncherDelegate* launcher_delegate,
87 int argc, 92 int argc,
88 char** argv) WARN_UNUSED_RESULT; 93 char** argv) WARN_UNUSED_RESULT;
89 94
90 } // namespace base 95 } // namespace base
91 96
92 #endif // BASE_TEST_TEST_LAUNCHER_H_ 97 #endif // BASE_TEST_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « base/command_line.cc ('k') | base/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698