| OLD | NEW |
| 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 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/plugin_service.h" | 9 #include "content/browser/plugin_service.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Similar macros that test over HTTP. | 224 // Similar macros that test over HTTP. |
| 225 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ | 225 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ |
| 226 TEST_F(PPAPITest, test_name) { \ | 226 TEST_F(PPAPITest, test_name) { \ |
| 227 RunTestViaHTTP(#test_name); \ | 227 RunTestViaHTTP(#test_name); \ |
| 228 } | 228 } |
| 229 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ | 229 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ |
| 230 TEST_F(OutOfProcessPPAPITest, test_name) { \ | 230 TEST_F(OutOfProcessPPAPITest, test_name) { \ |
| 231 RunTestViaHTTP(#test_name); \ | 231 RunTestViaHTTP(#test_name); \ |
| 232 } | 232 } |
| 233 | 233 |
| 234 // Similar macros that test with WebSocket server |
| 235 #define TEST_PPAPI_IN_PROCESS_WITH_WS(test_name) \ |
| 236 TEST_F(PPAPITest, test_name) { \ |
| 237 RunTestWithWebSocketServer(#test_name); \ |
| 238 } |
| 239 #define TEST_PPAPI_OUT_OF_PROCESS_WITH_WS(test_name) \ |
| 240 TEST_F(OutOfProcessPPAPITest, test_name) { \ |
| 241 RunTestWithWebSocketServer(#test_name); \ |
| 242 } |
| 243 |
| 244 |
| 234 | 245 |
| 235 // NaCl based PPAPI tests | 246 // NaCl based PPAPI tests |
| 236 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ | 247 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ |
| 237 TEST_F(PPAPINaClTest, test_name) { \ | 248 TEST_F(PPAPINaClTest, test_name) { \ |
| 238 RunTestViaHTTP(#test_name); \ | 249 RunTestViaHTTP(#test_name); \ |
| 239 } | 250 } |
| 240 | 251 |
| 241 // | 252 // |
| 242 // Interface tests. | 253 // Interface tests. |
| 243 // | 254 // |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 TEST_PPAPI_IN_PROCESS(Flash_GetProxyForURL) | 464 TEST_PPAPI_IN_PROCESS(Flash_GetProxyForURL) |
| 454 TEST_PPAPI_IN_PROCESS(Flash_MessageLoop) | 465 TEST_PPAPI_IN_PROCESS(Flash_MessageLoop) |
| 455 TEST_PPAPI_IN_PROCESS(Flash_GetLocalTimeZoneOffset) | 466 TEST_PPAPI_IN_PROCESS(Flash_GetLocalTimeZoneOffset) |
| 456 TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs) | 467 TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs) |
| 457 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop) | 468 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop) |
| 458 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) | 469 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) |
| 459 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) | 470 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) |
| 460 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) | 471 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) |
| 461 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) | 472 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) |
| 462 | 473 |
| 463 TEST_PPAPI_IN_PROCESS(WebSocket_Create) | 474 TEST_PPAPI_IN_PROCESS(WebSocket_InvalidConnect) |
| 464 TEST_PPAPI_IN_PROCESS(WebSocket_IsWebSocket) | 475 TEST_PPAPI_IN_PROCESS(WebSocket_IsWebSocket) |
| 476 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_ValidConnect) |
| 477 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_TextSendReceive) |
| 465 | 478 |
| 466 #endif // ADDRESS_SANITIZER | 479 #endif // ADDRESS_SANITIZER |
| OLD | NEW |