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

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

Issue 9477001: Allow callers of CommandLine::Init to know whether they were the first caller. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment clarification. Created 8 years, 10 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/command_line_unittest.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 // Defines a basic test suite framework for running gtest based tests. You can 9 // Defines a basic test suite framework for running gtest based tests. You can
10 // instantiate this class in your main function and call its Run method to run 10 // instantiate this class in your main function and call its Run method to run
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void Shutdown(); 80 virtual void Shutdown();
81 81
82 // Make sure that we setup an AtExitManager so Singleton objects will be 82 // Make sure that we setup an AtExitManager so Singleton objects will be
83 // destroyed. 83 // destroyed.
84 scoped_ptr<base::AtExitManager> at_exit_manager_; 84 scoped_ptr<base::AtExitManager> at_exit_manager_;
85 85
86 private: 86 private:
87 // Basic initialization for the test suite happens here. 87 // Basic initialization for the test suite happens here.
88 void PreInitialize(int argc, char** argv, bool create_at_exit_manager); 88 void PreInitialize(int argc, char** argv, bool create_at_exit_manager);
89 89
90 bool initialized_command_line_;
91
90 DISALLOW_COPY_AND_ASSIGN(TestSuite); 92 DISALLOW_COPY_AND_ASSIGN(TestSuite);
91 }; 93 };
92 94
93 } // namespace base 95 } // namespace base
94 96
95 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile 97 // TODO(brettw) remove this. This is a temporary hack to allow WebKit to compile
96 // until we can update it to use "base::" (preventing a two-sided patch). 98 // until we can update it to use "base::" (preventing a two-sided patch).
97 using base::TestSuite; 99 using base::TestSuite;
98 100
99 #endif // BASE_TEST_TEST_SUITE_H_ 101 #endif // BASE_TEST_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « base/command_line_unittest.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698