OLD | NEW |
---|---|
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 #include "chrome/test/ui/ppapi_uitest.h" | 5 #include "chrome/test/ui/ppapi_uitest.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 } | 152 } |
153 | 153 |
154 void PPAPITestBase::RunTestAndReload(const std::string& test_case) { | 154 void PPAPITestBase::RunTestAndReload(const std::string& test_case) { |
155 GURL url = GetTestFileUrl(test_case); | 155 GURL url = GetTestFileUrl(test_case); |
156 RunTestURL(url); | 156 RunTestURL(url); |
157 // If that passed, we simply run the test again, which navigates again. | 157 // If that passed, we simply run the test again, which navigates again. |
158 RunTestURL(url); | 158 RunTestURL(url); |
159 } | 159 } |
160 | 160 |
161 void PPAPITestBase::RunTestViaHTTP(const std::string& test_case) { | 161 void PPAPITestBase::RunTestViaHTTP(const std::string& test_case) { |
162 // For HTTP tests, we use the output DIR to grab the generated files such | 162 FilePath document_root; |
163 // as the NEXEs. | 163 ASSERT_TRUE(GetHTTPDocumentRoot(&document_root)); |
164 FilePath exe_dir = CommandLine::ForCurrentProcess()->GetProgram().DirName(); | 164 RunHTTPTestServer(document_root, test_case, ""); |
165 FilePath src_dir; | 165 } |
166 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &src_dir)); | |
167 | 166 |
168 // TestServer expects a path relative to source. So we must first | 167 void PPAPITestBase::RunTestWithSSLServer(const std::string& test_case) { |
169 // generate absolute paths to SRC and EXE and from there generate | 168 FilePath document_root; |
170 // a relative path. | 169 ASSERT_TRUE(GetHTTPDocumentRoot(&document_root)); |
171 if (!exe_dir.IsAbsolute()) file_util::AbsolutePath(&exe_dir); | 170 net::TestServer test_server(net::BaseTestServer::HTTPSOptions(), |
172 if (!src_dir.IsAbsolute()) file_util::AbsolutePath(&src_dir); | 171 document_root); |
173 ASSERT_TRUE(exe_dir.IsAbsolute()); | |
174 ASSERT_TRUE(src_dir.IsAbsolute()); | |
175 | |
176 size_t match, exe_size, src_size; | |
177 std::vector<FilePath::StringType> src_parts, exe_parts; | |
178 | |
179 // Determine point at which src and exe diverge, and create a relative path. | |
180 exe_dir.GetComponents(&exe_parts); | |
181 src_dir.GetComponents(&src_parts); | |
182 exe_size = exe_parts.size(); | |
183 src_size = src_parts.size(); | |
184 for (match = 0; match < exe_size && match < src_size; ++match) { | |
185 if (exe_parts[match] != src_parts[match]) | |
186 break; | |
187 } | |
188 FilePath web_dir; | |
189 for (size_t tmp_itr = match; tmp_itr < src_size; ++tmp_itr) { | |
190 web_dir = web_dir.Append(FILE_PATH_LITERAL("..")); | |
191 } | |
192 for (; match < exe_size; ++match) { | |
193 web_dir = web_dir.Append(exe_parts[match]); | |
194 } | |
195 | |
196 net::TestServer test_server(net::TestServer::TYPE_HTTP, | |
197 net::TestServer::kLocalhost, | |
198 web_dir); | |
199 ASSERT_TRUE(test_server.Start()); | 172 ASSERT_TRUE(test_server.Start()); |
200 std::string query = BuildQuery("files/test_case.html?", test_case); | 173 uint16_t port = test_server.host_port_pair().port(); |
201 | 174 RunHTTPTestServer(document_root, test_case, |
202 GURL url = test_server.GetURL(query); | 175 StringPrintf("ssl_server_port=%d", port)); |
203 RunTestURL(url); | |
204 } | 176 } |
205 | 177 |
206 void PPAPITestBase::RunTestWithWebSocketServer(const std::string& test_case) { | 178 void PPAPITestBase::RunTestWithWebSocketServer(const std::string& test_case) { |
207 FilePath websocket_root_dir; | 179 FilePath websocket_root_dir; |
208 ASSERT_TRUE( | 180 ASSERT_TRUE( |
209 PathService::Get(chrome::DIR_LAYOUT_TESTS, &websocket_root_dir)); | 181 PathService::Get(chrome::DIR_LAYOUT_TESTS, &websocket_root_dir)); |
210 | 182 FilePath http_document_root; |
183 ASSERT_TRUE(GetHTTPDocumentRoot(&http_document_root)); | |
211 ui_test_utils::TestWebSocketServer server; | 184 ui_test_utils::TestWebSocketServer server; |
185 ASSERT_TRUE(server.Start(websocket_root_dir)); | |
212 int port = server.UseRandomPort(); | 186 int port = server.UseRandomPort(); |
213 ASSERT_TRUE(server.Start(websocket_root_dir)); | 187 RunHTTPTestServer(http_document_root, test_case, |
214 std::string url = StringPrintf("%s&websocket_port=%d", | 188 StringPrintf("websocket_port=%d", port)); |
215 test_case.c_str(), port); | |
216 RunTestViaHTTP(url); | |
217 } | 189 } |
218 | 190 |
219 std::string PPAPITestBase::StripPrefixes(const std::string& test_name) { | 191 std::string PPAPITestBase::StripPrefixes(const std::string& test_name) { |
220 const char* const prefixes[] = { | 192 const char* const prefixes[] = { |
221 "FAILS_", "FLAKY_", "DISABLED_", "SLOW_" }; | 193 "FAILS_", "FLAKY_", "DISABLED_", "SLOW_" }; |
222 for (size_t i = 0; i < sizeof(prefixes)/sizeof(prefixes[0]); ++i) | 194 for (size_t i = 0; i < sizeof(prefixes)/sizeof(prefixes[0]); ++i) |
223 if (test_name.find(prefixes[i]) == 0) | 195 if (test_name.find(prefixes[i]) == 0) |
224 return test_name.substr(strlen(prefixes[i])); | 196 return test_name.substr(strlen(prefixes[i])); |
225 return test_name; | 197 return test_name; |
226 } | 198 } |
227 | 199 |
228 void PPAPITestBase::RunTestURL(const GURL& test_url) { | 200 void PPAPITestBase::RunTestURL(const GURL& test_url) { |
229 // See comment above TestingInstance in ppapi/test/testing_instance.h. | 201 // See comment above TestingInstance in ppapi/test/testing_instance.h. |
230 // Basically it sends messages using the DOM automation controller. The | 202 // Basically it sends messages using the DOM automation controller. The |
231 // value of "..." means it's still working and we should continue to wait, | 203 // value of "..." means it's still working and we should continue to wait, |
232 // any other value indicates completion (in this case it will start with | 204 // any other value indicates completion (in this case it will start with |
233 // "PASS" or "FAIL"). This keeps us from timing out on waits for long tests. | 205 // "PASS" or "FAIL"). This keeps us from timing out on waits for long tests. |
234 TestFinishObserver observer( | 206 TestFinishObserver observer( |
235 browser()->GetSelectedWebContents()->GetRenderViewHost(), kTimeoutMs); | 207 browser()->GetSelectedWebContents()->GetRenderViewHost(), kTimeoutMs); |
236 | 208 |
237 ui_test_utils::NavigateToURL(browser(), test_url); | 209 ui_test_utils::NavigateToURL(browser(), test_url); |
238 | 210 |
239 ASSERT_TRUE(observer.WaitForFinish()) << "Test timed out."; | 211 ASSERT_TRUE(observer.WaitForFinish()) << "Test timed out."; |
240 | 212 |
241 EXPECT_STREQ("PASS", observer.result().c_str()); | 213 EXPECT_STREQ("PASS", observer.result().c_str()); |
242 } | 214 } |
243 | 215 |
216 void PPAPITestBase::RunHTTPTestServer( | |
217 const FilePath& document_root, | |
218 const std::string& test_case, | |
219 const std::string& extra_params) { | |
220 net::TestServer test_server(net::TestServer::TYPE_HTTP, | |
221 net::TestServer::kLocalhost, | |
222 document_root); | |
223 ASSERT_TRUE(test_server.Start()); | |
224 std::string query = BuildQuery("files/test_case.html?", test_case); | |
225 if (extra_params.length() > 0) | |
yzshen1
2012/03/22 00:54:59
nit: if (!extra_params.empty())
| |
226 query = StringPrintf("%s&%s", query.c_str(), extra_params.c_str()); | |
227 | |
228 GURL url = test_server.GetURL(query); | |
229 RunTestURL(url); | |
230 } | |
231 | |
232 bool PPAPITestBase::GetHTTPDocumentRoot(FilePath* document_root) { | |
233 // For HTTP tests, we use the output DIR to grab the generated files such | |
234 // as the NEXEs. | |
235 FilePath exe_dir = CommandLine::ForCurrentProcess()->GetProgram().DirName(); | |
236 FilePath src_dir; | |
237 if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_dir)) | |
238 return false; | |
239 | |
240 // TestServer expects a path relative to source. So we must first | |
241 // generate absolute paths to SRC and EXE and from there generate | |
242 // a relative path. | |
243 if (!exe_dir.IsAbsolute()) file_util::AbsolutePath(&exe_dir); | |
244 if (!src_dir.IsAbsolute()) file_util::AbsolutePath(&src_dir); | |
245 if (!exe_dir.IsAbsolute()) | |
246 return false; | |
247 if (!src_dir.IsAbsolute()) | |
248 return false; | |
249 | |
250 size_t match, exe_size, src_size; | |
251 std::vector<FilePath::StringType> src_parts, exe_parts; | |
252 | |
253 // Determine point at which src and exe diverge, and create a relative path. | |
254 exe_dir.GetComponents(&exe_parts); | |
255 src_dir.GetComponents(&src_parts); | |
256 exe_size = exe_parts.size(); | |
257 src_size = src_parts.size(); | |
258 for (match = 0; match < exe_size && match < src_size; ++match) { | |
259 if (exe_parts[match] != src_parts[match]) | |
260 break; | |
261 } | |
262 for (size_t tmp_itr = match; tmp_itr < src_size; ++tmp_itr) { | |
263 *document_root = document_root->Append(FILE_PATH_LITERAL("..")); | |
264 } | |
265 for (; match < exe_size; ++match) { | |
266 *document_root = document_root->Append(exe_parts[match]); | |
267 } | |
268 return true; | |
269 } | |
270 | |
244 PPAPITest::PPAPITest() { | 271 PPAPITest::PPAPITest() { |
245 } | 272 } |
246 | 273 |
247 void PPAPITest::SetUpCommandLine(CommandLine* command_line) { | 274 void PPAPITest::SetUpCommandLine(CommandLine* command_line) { |
248 PPAPITestBase::SetUpCommandLine(command_line); | 275 PPAPITestBase::SetUpCommandLine(command_line); |
249 | 276 |
250 // Append the switch to register the pepper plugin. | 277 // Append the switch to register the pepper plugin. |
251 // library name = <out dir>/<test_name>.<library_extension> | 278 // library name = <out dir>/<test_name>.<library_extension> |
252 // MIME type = application/x-ppapi-<test_name> | 279 // MIME type = application/x-ppapi-<test_name> |
253 FilePath plugin_dir; | 280 FilePath plugin_dir; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 // Similar macros that test over HTTP. | 366 // Similar macros that test over HTTP. |
340 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ | 367 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ |
341 IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \ | 368 IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \ |
342 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ | 369 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
343 } | 370 } |
344 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ | 371 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ |
345 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \ | 372 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \ |
346 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ | 373 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
347 } | 374 } |
348 | 375 |
376 // Similar macros that test with an SSL server. | |
377 #define TEST_PPAPI_IN_PROCESS_WITH_SSL_SERVER(test_name) \ | |
378 IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \ | |
379 RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \ | |
380 } | |
381 #define TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(test_name) \ | |
382 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \ | |
383 RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \ | |
384 } | |
385 | |
349 // Similar macros that test with WebSocket server | 386 // Similar macros that test with WebSocket server |
350 #define TEST_PPAPI_IN_PROCESS_WITH_WS(test_name) \ | 387 #define TEST_PPAPI_IN_PROCESS_WITH_WS(test_name) \ |
351 IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \ | 388 IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \ |
352 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ | 389 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ |
353 } | 390 } |
354 #define TEST_PPAPI_OUT_OF_PROCESS_WITH_WS(test_name) \ | 391 #define TEST_PPAPI_OUT_OF_PROCESS_WITH_WS(test_name) \ |
355 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \ | 392 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \ |
356 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ | 393 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ |
357 } | 394 } |
358 | 395 |
359 | 396 |
360 #if defined(DISABLE_NACL) | 397 #if defined(DISABLE_NACL) |
361 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) | 398 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) |
362 #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) | 399 #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) |
363 #define TEST_PPAPI_NACL_VIA_HTTP_WITH_WS(test_name) | 400 #define TEST_PPAPI_NACL_VIA_HTTP_WITH_WS(test_name) |
364 #else | 401 #else |
365 | 402 |
366 // NaCl based PPAPI tests | 403 // NaCl based PPAPI tests |
367 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ | 404 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ |
368 IN_PROC_BROWSER_TEST_F(PPAPINaClTest, test_name) { \ | 405 IN_PROC_BROWSER_TEST_F(PPAPINaClTest, test_name) { \ |
369 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ | 406 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
370 } | 407 } |
371 | 408 |
372 // NaCl based PPAPI tests with disallowed socket API | 409 // NaCl based PPAPI tests with disallowed socket API |
373 #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) \ | 410 #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) \ |
374 IN_PROC_BROWSER_TEST_F(PPAPINaClTestDisallowedSockets, test_name) { \ | 411 IN_PROC_BROWSER_TEST_F(PPAPINaClTestDisallowedSockets, test_name) { \ |
375 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ | 412 RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
376 } | 413 } |
377 | 414 |
415 // NaCl based PPAPI tests with SSL server | |
416 #define TEST_PPAPI_NACL_VIA_HTTP_WITH_SSL_SERVER(test_name) \ | |
417 IN_PROC_BROWSER_TEST_F(PPAPINaClTest, test_name) { \ | |
418 RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \ | |
419 } | |
420 | |
378 // NaCl based PPAPI tests with WebSocket server | 421 // NaCl based PPAPI tests with WebSocket server |
379 #define TEST_PPAPI_NACL_VIA_HTTP_WITH_WS(test_name) \ | 422 #define TEST_PPAPI_NACL_VIA_HTTP_WITH_WS(test_name) \ |
380 IN_PROC_BROWSER_TEST_F(PPAPINaClTest, test_name) { \ | 423 IN_PROC_BROWSER_TEST_F(PPAPINaClTest, test_name) { \ |
381 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ | 424 RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ |
382 } | 425 } |
383 #endif | 426 #endif |
384 | 427 |
385 | 428 |
386 // | 429 // |
387 // Interface tests. | 430 // Interface tests. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 TEST_PPAPI_IN_PROCESS(ImageData) | 495 TEST_PPAPI_IN_PROCESS(ImageData) |
453 TEST_PPAPI_OUT_OF_PROCESS(ImageData) | 496 TEST_PPAPI_OUT_OF_PROCESS(ImageData) |
454 TEST_PPAPI_NACL_VIA_HTTP(ImageData) | 497 TEST_PPAPI_NACL_VIA_HTTP(ImageData) |
455 | 498 |
456 TEST_PPAPI_IN_PROCESS(BrowserFont) | 499 TEST_PPAPI_IN_PROCESS(BrowserFont) |
457 TEST_PPAPI_OUT_OF_PROCESS(BrowserFont) | 500 TEST_PPAPI_OUT_OF_PROCESS(BrowserFont) |
458 | 501 |
459 TEST_PPAPI_IN_PROCESS(Buffer) | 502 TEST_PPAPI_IN_PROCESS(Buffer) |
460 TEST_PPAPI_OUT_OF_PROCESS(Buffer) | 503 TEST_PPAPI_OUT_OF_PROCESS(Buffer) |
461 | 504 |
462 // TODO(ygorshenin): investigate why | 505 TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(TCPSocketPrivate) |
463 // TEST_PPAPI_IN_PROCESS(TCPSocketPrivateShared) fails, | 506 TEST_PPAPI_IN_PROCESS_WITH_SSL_SERVER(TCPSocketPrivate) |
464 // http://crbug.com/105860. | 507 TEST_PPAPI_NACL_VIA_HTTP_WITH_SSL_SERVER(TCPSocketPrivate) |
465 TEST_PPAPI_IN_PROCESS_VIA_HTTP(TCPSocketPrivateShared) | |
466 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(TCPSocketPrivateShared) | |
467 TEST_PPAPI_NACL_VIA_HTTP(TCPSocketPrivateShared) | |
468 | 508 |
469 // TODO(ygorshenin): investigate why | 509 TEST_PPAPI_IN_PROCESS_VIA_HTTP(UDPSocketPrivate) |
470 // TEST_PPAPI_IN_PROCESS(UDPSocketPrivateShared) fails, | 510 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate) |
471 // http://crbug.com/105860. | 511 TEST_PPAPI_NACL_VIA_HTTP(UDPSocketPrivate) |
472 TEST_PPAPI_IN_PROCESS_VIA_HTTP(UDPSocketPrivateShared) | |
473 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivateShared) | |
474 TEST_PPAPI_NACL_VIA_HTTP(UDPSocketPrivateShared) | |
475 | 512 |
476 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(TCPServerSocketPrivateDisallowed) | 513 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(TCPServerSocketPrivateDisallowed) |
477 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(TCPSocketPrivateDisallowed) | 514 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(TCPSocketPrivateDisallowed) |
478 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(UDPSocketPrivateDisallowed) | 515 TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(UDPSocketPrivateDisallowed) |
479 | 516 |
480 TEST_PPAPI_IN_PROCESS_VIA_HTTP(TCPServerSocketPrivate) | 517 TEST_PPAPI_IN_PROCESS_VIA_HTTP(TCPServerSocketPrivate) |
481 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(TCPServerSocketPrivate) | 518 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(TCPServerSocketPrivate) |
482 // TODO(ygorshenin): http://crbug.com/116480. | 519 // TODO(ygorshenin): http://crbug.com/116480. |
483 TEST_PPAPI_NACL_VIA_HTTP(DISABLED_TCPServerSocketPrivate) | 520 TEST_PPAPI_NACL_VIA_HTTP(DISABLED_TCPServerSocketPrivate) |
484 | 521 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
799 TEST_PPAPI_NACL_VIA_HTTP(MAYBE_NetAddressPrivateUntrusted_GetPort) | 836 TEST_PPAPI_NACL_VIA_HTTP(MAYBE_NetAddressPrivateUntrusted_GetPort) |
800 TEST_PPAPI_NACL_VIA_HTTP(NetAddressPrivateUntrusted_GetAddress) | 837 TEST_PPAPI_NACL_VIA_HTTP(NetAddressPrivateUntrusted_GetAddress) |
801 | 838 |
802 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_Basic) | 839 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_Basic) |
803 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_Basic) | 840 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_Basic) |
804 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_2Monitors) | 841 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_2Monitors) |
805 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_2Monitors) | 842 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_2Monitors) |
806 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_DeleteInCallback) | 843 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_DeleteInCallback) |
807 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_DeleteInCallback) | 844 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_DeleteInCallback) |
808 | 845 |
809 // PPB_TCPSocket_Private currently isn't supported in-process. | |
810 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, TCPSocketPrivate) { | |
811 RunTestViaHTTP("TCPSocketPrivate"); | |
812 } | |
813 | |
814 TEST_PPAPI_IN_PROCESS(Flash_SetInstanceAlwaysOnTop) | 846 TEST_PPAPI_IN_PROCESS(Flash_SetInstanceAlwaysOnTop) |
815 TEST_PPAPI_IN_PROCESS(Flash_GetProxyForURL) | 847 TEST_PPAPI_IN_PROCESS(Flash_GetProxyForURL) |
816 TEST_PPAPI_IN_PROCESS(Flash_MessageLoop) | 848 TEST_PPAPI_IN_PROCESS(Flash_MessageLoop) |
817 TEST_PPAPI_IN_PROCESS(Flash_GetLocalTimeZoneOffset) | 849 TEST_PPAPI_IN_PROCESS(Flash_GetLocalTimeZoneOffset) |
818 TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs) | 850 TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs) |
819 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop) | 851 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop) |
820 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) | 852 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) |
821 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) | 853 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) |
822 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) | 854 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) |
823 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) | 855 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
961 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_OutOfRangeAccess) | 993 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_OutOfRangeAccess) |
962 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_EmptyArray) | 994 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_EmptyArray) |
963 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_InvalidElement) | 995 TEST_PPAPI_OUT_OF_PROCESS(ResourceArray_InvalidElement) |
964 | 996 |
965 TEST_PPAPI_IN_PROCESS(FlashMessageLoop_Basics) | 997 TEST_PPAPI_IN_PROCESS(FlashMessageLoop_Basics) |
966 TEST_PPAPI_IN_PROCESS(FlashMessageLoop_RunWithoutQuit) | 998 TEST_PPAPI_IN_PROCESS(FlashMessageLoop_RunWithoutQuit) |
967 TEST_PPAPI_OUT_OF_PROCESS(FlashMessageLoop_Basics) | 999 TEST_PPAPI_OUT_OF_PROCESS(FlashMessageLoop_Basics) |
968 TEST_PPAPI_OUT_OF_PROCESS(FlashMessageLoop_RunWithoutQuit) | 1000 TEST_PPAPI_OUT_OF_PROCESS(FlashMessageLoop_RunWithoutQuit) |
969 | 1001 |
970 #endif // ADDRESS_SANITIZER | 1002 #endif // ADDRESS_SANITIZER |
OLD | NEW |