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

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

Issue 645133002: Prefix CommandLine usege with base namespace (Part 1: base/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 6 years, 2 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
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_RESULTS_TRACKER_H_ 5 #ifndef BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_
6 #define BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ 6 #define BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 // Only each test (testcase element in the XML) will have the correct 28 // Only each test (testcase element in the XML) will have the correct
29 // failed/disabled/elapsed_time information. Each test won't include 29 // failed/disabled/elapsed_time information. Each test won't include
30 // detailed failure messages either. 30 // detailed failure messages either.
31 class TestResultsTracker { 31 class TestResultsTracker {
32 public: 32 public:
33 TestResultsTracker(); 33 TestResultsTracker();
34 ~TestResultsTracker(); 34 ~TestResultsTracker();
35 35
36 // Initialize the result tracker. Must be called exactly once before 36 // Initialize the result tracker. Must be called exactly once before
37 // calling any other methods. Returns true on success. 37 // calling any other methods. Returns true on success.
38 bool Init(const CommandLine& command_line) WARN_UNUSED_RESULT; 38 bool Init(const base::CommandLine& command_line) WARN_UNUSED_RESULT;
brettw 2014/10/14 17:46:57 This file is already in base.
39 39
40 // Called when a test iteration is starting. 40 // Called when a test iteration is starting.
41 void OnTestIterationStarting(); 41 void OnTestIterationStarting();
42 42
43 // Adds |test_name| to the set of discovered tests (this includes all tests 43 // Adds |test_name| to the set of discovered tests (this includes all tests
44 // present in the executable, not necessarily run). 44 // present in the executable, not necessarily run).
45 void AddTest(const std::string& test_name); 45 void AddTest(const std::string& test_name);
46 46
47 // Adds |test_name| to the set of disabled tests. 47 // Adds |test_name| to the set of disabled tests.
48 void AddDisabledTest(const std::string& test_name); 48 void AddDisabledTest(const std::string& test_name);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // File handle of output file (can be NULL if no file). 115 // File handle of output file (can be NULL if no file).
116 FILE* out_; 116 FILE* out_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(TestResultsTracker); 118 DISALLOW_COPY_AND_ASSIGN(TestResultsTracker);
119 }; 119 };
120 120
121 } // namespace base 121 } // namespace base
122 122
123 #endif // BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_ 123 #endif // BASE_TEST_LAUNCHER_TEST_RESULTS_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698