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

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

Issue 2876153002: Support Using ScopedFeatureList in BrowserTest (Closed)
Patch Set: leave tests and changes in test_suites to following patch Created 3 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
« no previous file with comments | « no previous file | base/test/test_suite.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SUITE_H_ 5 #ifndef BASE_TEST_TEST_SUITE_H_
6 #define BASE_TEST_TEST_SUITE_H_ 6 #define BASE_TEST_TEST_SUITE_H_
7 7
8 // Defines a basic test suite framework for running gtest based tests. You can 8 // Defines a basic test suite framework for running gtest based tests. You can
9 // instantiate this class in your main function and call its Run method to run 9 // instantiate this class in your main function and call its Run method to run
10 // any gtest based tests that are linked into your executable. 10 // any gtest based tests that are linked into your executable.
11 11
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 14
15 #include "base/at_exit.h" 15 #include "base/at_exit.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/test/scoped_feature_list.h"
18 #include "base/test/trace_to_file.h" 19 #include "base/test/trace_to_file.h"
19 #include "build/build_config.h" 20 #include "build/build_config.h"
20 21
21 namespace testing { 22 namespace testing {
22 class TestInfo; 23 class TestInfo;
23 } 24 }
24 25
25 namespace base { 26 namespace base {
26 27
27 class XmlUnitTestResultPrinter; 28 class XmlUnitTestResultPrinter;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void InitializeFromCommandLine(int argc, wchar_t** argv); 82 void InitializeFromCommandLine(int argc, wchar_t** argv);
82 #endif // defined(OS_WIN) 83 #endif // defined(OS_WIN)
83 84
84 // Basic initialization for the test suite happens here. 85 // Basic initialization for the test suite happens here.
85 void PreInitialize(); 86 void PreInitialize();
86 87
87 test::TraceToFile trace_to_file_; 88 test::TraceToFile trace_to_file_;
88 89
89 bool initialized_command_line_; 90 bool initialized_command_line_;
90 91
91 bool created_feature_list_; 92 test::ScopedFeatureList scoped_feature_list_;
92 93
93 XmlUnitTestResultPrinter* printer_ = nullptr; 94 XmlUnitTestResultPrinter* printer_ = nullptr;
94 95
95 std::unique_ptr<logging::ScopedLogAssertHandler> assert_handler_; 96 std::unique_ptr<logging::ScopedLogAssertHandler> assert_handler_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(TestSuite); 98 DISALLOW_COPY_AND_ASSIGN(TestSuite);
98 }; 99 };
99 100
100 } // namespace base 101 } // namespace base
101 102
102 #endif // BASE_TEST_TEST_SUITE_H_ 103 #endif // BASE_TEST_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698