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

Side by Side Diff: content/public/test/browser_test_base.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « content/public/common/sandbox_init.h ('k') | content/public/test/browser_test_utils.h » ('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 CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "net/test/spawned_test_server/spawned_test_server.h" 11 #include "net/test/spawned_test_server/spawned_test_server.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace base {
14 class CommandLine; 15 class CommandLine;
15
16 namespace base {
17 class FilePath; 16 class FilePath;
18 } 17 }
19 18
20 namespace net { 19 namespace net {
21 namespace test_server { 20 namespace test_server {
22 class EmbeddedTestServer; 21 class EmbeddedTestServer;
23 } 22 }
24 23
25 class RuleBasedHostResolverProc; 24 class RuleBasedHostResolverProc;
26 } // namespace net 25 } // namespace net
(...skipping 19 matching lines...) Expand all
46 // Override this to add any custom setup code that needs to be done on the 45 // Override this to add any custom setup code that needs to be done on the
47 // main thread after the browser is created and just before calling 46 // main thread after the browser is created and just before calling
48 // RunTestOnMainThread(). 47 // RunTestOnMainThread().
49 virtual void SetUpOnMainThread() {} 48 virtual void SetUpOnMainThread() {}
50 49
51 // Override this to add any custom teardown code that needs to be done on the 50 // Override this to add any custom teardown code that needs to be done on the
52 // main thread right after RunTestOnMainThread(). 51 // main thread right after RunTestOnMainThread().
53 virtual void TearDownOnMainThread() {} 52 virtual void TearDownOnMainThread() {}
54 53
55 // Override this to add command line flags specific to your test. 54 // Override this to add command line flags specific to your test.
56 virtual void SetUpCommandLine(CommandLine* command_line) {} 55 virtual void SetUpCommandLine(base::CommandLine* command_line) {}
57 56
58 // Returns the host resolver being used for the tests. Subclasses might want 57 // Returns the host resolver being used for the tests. Subclasses might want
59 // to configure it inside tests. 58 // to configure it inside tests.
60 net::RuleBasedHostResolverProc* host_resolver() { 59 net::RuleBasedHostResolverProc* host_resolver() {
61 return rule_based_resolver_.get(); 60 return rule_based_resolver_.get();
62 } 61 }
63 62
64 protected: 63 protected:
65 // We need these special methods because SetUp is the bottom of the stack 64 // We need these special methods because SetUp is the bottom of the stack
66 // that winds up calling your test method, so it is not always an option 65 // that winds up calling your test method, so it is not always an option
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool use_software_compositing_; 147 bool use_software_compositing_;
149 148
150 #if defined(OS_POSIX) 149 #if defined(OS_POSIX)
151 bool handle_sigterm_; 150 bool handle_sigterm_;
152 #endif 151 #endif
153 }; 152 };
154 153
155 } // namespace content 154 } // namespace content
156 155
157 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ 156 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_
OLDNEW
« no previous file with comments | « content/public/common/sandbox_init.h ('k') | content/public/test/browser_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698