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

Side by Side Diff: chrome/test/ppapi/ppapi_test.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 | « chrome/test/perf/browser_perf_test.h ('k') | chrome/test/ppapi/ppapi_test.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 CHROME_TEST_PPAPI_PPAPI_TEST_H_ 5 #ifndef CHROME_TEST_PPAPI_PPAPI_TEST_H_
6 #define CHROME_TEST_PPAPI_PPAPI_TEST_H_ 6 #define CHROME_TEST_PPAPI_PPAPI_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 34
35 DISALLOW_COPY_AND_ASSIGN(PPAPITestMessageHandler); 35 DISALLOW_COPY_AND_ASSIGN(PPAPITestMessageHandler);
36 }; 36 };
37 37
38 class PPAPITestBase : public InProcessBrowserTest { 38 class PPAPITestBase : public InProcessBrowserTest {
39 public: 39 public:
40 PPAPITestBase(); 40 PPAPITestBase();
41 41
42 // InProcessBrowserTest: 42 // InProcessBrowserTest:
43 virtual void SetUp() OVERRIDE; 43 virtual void SetUp() OVERRIDE;
44 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 44 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
45 virtual void SetUpOnMainThread() OVERRIDE; 45 virtual void SetUpOnMainThread() OVERRIDE;
46 46
47 virtual std::string BuildQuery(const std::string& base, 47 virtual std::string BuildQuery(const std::string& base,
48 const std::string& test_case) = 0; 48 const std::string& test_case) = 0;
49 49
50 // Returns the URL to load for file: tests. 50 // Returns the URL to load for file: tests.
51 GURL GetTestFileUrl(const std::string& test_case); 51 GURL GetTestFileUrl(const std::string& test_case);
52 virtual void RunTest(const std::string& test_case); 52 virtual void RunTest(const std::string& test_case);
53 // Run the test and reload. This can test for clean shutdown, including leaked 53 // Run the test and reload. This can test for clean shutdown, including leaked
54 // instance object vars. 54 // instance object vars.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const std::string& test_case, 92 const std::string& test_case,
93 const std::string& extra_params); 93 const std::string& extra_params);
94 }; 94 };
95 95
96 // In-process plugin test runner. See OutOfProcessPPAPITest below for the 96 // In-process plugin test runner. See OutOfProcessPPAPITest below for the
97 // out-of-process version. 97 // out-of-process version.
98 class PPAPITest : public PPAPITestBase { 98 class PPAPITest : public PPAPITestBase {
99 public: 99 public:
100 PPAPITest(); 100 PPAPITest();
101 101
102 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 102 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
103 103
104 virtual std::string BuildQuery(const std::string& base, 104 virtual std::string BuildQuery(const std::string& base,
105 const std::string& test_case) OVERRIDE; 105 const std::string& test_case) OVERRIDE;
106 protected: 106 protected:
107 bool in_process_; // Controls the --ppapi-in-process switch. 107 bool in_process_; // Controls the --ppapi-in-process switch.
108 }; 108 };
109 109
110 class PPAPIPrivateTest : public PPAPITest { 110 class PPAPIPrivateTest : public PPAPITest {
111 protected: 111 protected:
112 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 112 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
113 }; 113 };
114 114
115 // Variant of PPAPITest that runs plugins out-of-process to test proxy 115 // Variant of PPAPITest that runs plugins out-of-process to test proxy
116 // codepaths. 116 // codepaths.
117 class OutOfProcessPPAPITest : public PPAPITest { 117 class OutOfProcessPPAPITest : public PPAPITest {
118 public: 118 public:
119 OutOfProcessPPAPITest(); 119 OutOfProcessPPAPITest();
120 120
121 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 121 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
122 }; 122 };
123 123
124 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest { 124 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest {
125 protected: 125 protected:
126 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 126 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
127 }; 127 };
128 128
129 // NaCl plugin test runner for Newlib runtime. 129 // NaCl plugin test runner for Newlib runtime.
130 class PPAPINaClTest : public PPAPITestBase { 130 class PPAPINaClTest : public PPAPITestBase {
131 public: 131 public:
132 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 132 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
133 // PPAPITestBase overrides. 133 // PPAPITestBase overrides.
134 virtual void RunTest(const std::string& test_case) OVERRIDE; 134 virtual void RunTest(const std::string& test_case) OVERRIDE;
135 virtual void RunTestAndReload(const std::string& test_case) OVERRIDE; 135 virtual void RunTestAndReload(const std::string& test_case) OVERRIDE;
136 virtual void RunTestViaHTTP(const std::string& test_case) OVERRIDE; 136 virtual void RunTestViaHTTP(const std::string& test_case) OVERRIDE;
137 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE; 137 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE;
138 virtual void RunTestWithWebSocketServer( 138 virtual void RunTestWithWebSocketServer(
139 const std::string& test_case) OVERRIDE; 139 const std::string& test_case) OVERRIDE;
140 virtual void RunTestIfAudioOutputAvailable( 140 virtual void RunTestIfAudioOutputAvailable(
141 const std::string& test_case) OVERRIDE; 141 const std::string& test_case) OVERRIDE;
142 virtual void RunTestViaHTTPIfAudioOutputAvailable( 142 virtual void RunTestViaHTTPIfAudioOutputAvailable(
143 const std::string& test_case) OVERRIDE; 143 const std::string& test_case) OVERRIDE;
144 }; 144 };
145 145
146 // NaCl plugin test runner for Newlib runtime. 146 // NaCl plugin test runner for Newlib runtime.
147 class PPAPINaClNewlibTest : public PPAPINaClTest { 147 class PPAPINaClNewlibTest : public PPAPINaClTest {
148 public: 148 public:
149 virtual std::string BuildQuery(const std::string& base, 149 virtual std::string BuildQuery(const std::string& base,
150 const std::string& test_case) OVERRIDE; 150 const std::string& test_case) OVERRIDE;
151 }; 151 };
152 152
153 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest { 153 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest {
154 protected: 154 protected:
155 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 155 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
156 }; 156 };
157 157
158 // NaCl plugin test runner for GNU-libc runtime. 158 // NaCl plugin test runner for GNU-libc runtime.
159 class PPAPINaClGLibcTest : public PPAPINaClTest { 159 class PPAPINaClGLibcTest : public PPAPINaClTest {
160 public: 160 public:
161 virtual std::string BuildQuery(const std::string& base, 161 virtual std::string BuildQuery(const std::string& base,
162 const std::string& test_case) OVERRIDE; 162 const std::string& test_case) OVERRIDE;
163 }; 163 };
164 164
165 class PPAPIPrivateNaClGLibcTest : public PPAPINaClGLibcTest { 165 class PPAPIPrivateNaClGLibcTest : public PPAPINaClGLibcTest {
166 protected: 166 protected:
167 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 167 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
168 }; 168 };
169 169
170 // NaCl plugin test runner for the PNaCl + Newlib runtime. 170 // NaCl plugin test runner for the PNaCl + Newlib runtime.
171 class PPAPINaClPNaClTest : public PPAPINaClTest { 171 class PPAPINaClPNaClTest : public PPAPINaClTest {
172 public: 172 public:
173 virtual std::string BuildQuery(const std::string& base, 173 virtual std::string BuildQuery(const std::string& base,
174 const std::string& test_case) OVERRIDE; 174 const std::string& test_case) OVERRIDE;
175 }; 175 };
176 176
177 class PPAPIPrivateNaClPNaClTest : public PPAPINaClPNaClTest { 177 class PPAPIPrivateNaClPNaClTest : public PPAPINaClPNaClTest {
178 protected: 178 protected:
179 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 179 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
180 }; 180 };
181 181
182 class PPAPINaClTestDisallowedSockets : public PPAPITestBase { 182 class PPAPINaClTestDisallowedSockets : public PPAPITestBase {
183 public: 183 public:
184 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 184 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
185 185
186 virtual std::string BuildQuery(const std::string& base, 186 virtual std::string BuildQuery(const std::string& base,
187 const std::string& test_case) OVERRIDE; 187 const std::string& test_case) OVERRIDE;
188 }; 188 };
189 189
190 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest { 190 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest {
191 public: 191 public:
192 // PPAPITestBase override: 192 // PPAPITestBase override:
193 virtual void SetUpOnMainThread() OVERRIDE; 193 virtual void SetUpOnMainThread() OVERRIDE;
194 }; 194 };
195 195
196 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_ 196 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/perf/browser_perf_test.h ('k') | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698