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/ppapi/ppapi_test.h" | 5 #include "chrome/test/ppapi/ppapi_test.h" |
6 | 6 |
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 "chrome/browser/content_settings/host_content_settings_map.h" | 9 #include "chrome/browser/content_settings/host_content_settings_map.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 #if defined(OS_CHROMEOS) && !defined(NDEBUG) | 1319 #if defined(OS_CHROMEOS) && !defined(NDEBUG) |
1320 #define MAYBE_Audio DISABLED_Audio | 1320 #define MAYBE_Audio DISABLED_Audio |
1321 #else | 1321 #else |
1322 #define MAYBE_Audio Audio | 1322 #define MAYBE_Audio Audio |
1323 #endif | 1323 #endif |
1324 IN_PROC_BROWSER_TEST_F(PPAPITest, MAYBE_Audio) { | 1324 IN_PROC_BROWSER_TEST_F(PPAPITest, MAYBE_Audio) { |
1325 RunTest(LIST_TEST(Audio_Creation) | 1325 RunTest(LIST_TEST(Audio_Creation) |
1326 LIST_TEST(Audio_DestroyNoStop) | 1326 LIST_TEST(Audio_DestroyNoStop) |
1327 LIST_TEST(Audio_Failures) | 1327 LIST_TEST(Audio_Failures) |
1328 LIST_TEST(Audio_AudioCallback1) | 1328 LIST_TEST(Audio_AudioCallback1) |
1329 LIST_TEST(Audio_AudioCallback2)); | 1329 LIST_TEST(Audio_AudioCallback2) |
| 1330 LIST_TEST(Audio_AudioCallback3) |
| 1331 LIST_TEST(Audio_AudioCallback4)); |
1330 } | 1332 } |
1331 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, Audio) { | 1333 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, Audio) { |
1332 RunTest(LIST_TEST(Audio_Creation) | 1334 RunTest(LIST_TEST(Audio_Creation) |
1333 LIST_TEST(Audio_DestroyNoStop) | 1335 LIST_TEST(Audio_DestroyNoStop) |
1334 LIST_TEST(Audio_Failures) | 1336 LIST_TEST(Audio_Failures) |
1335 LIST_TEST(Audio_AudioCallback1) | 1337 LIST_TEST(Audio_AudioCallback1) |
1336 LIST_TEST(Audio_AudioCallback2)); | 1338 LIST_TEST(Audio_AudioCallback2) |
| 1339 LIST_TEST(Audio_AudioCallback3) |
| 1340 LIST_TEST(Audio_AudioCallback4)); |
1337 } | 1341 } |
1338 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, Audio) { | 1342 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, Audio) { |
1339 RunTestViaHTTP(LIST_TEST(Audio_Creation) | 1343 RunTestViaHTTP(LIST_TEST(Audio_Creation) |
1340 LIST_TEST(Audio_DestroyNoStop) | 1344 LIST_TEST(Audio_DestroyNoStop) |
1341 LIST_TEST(Audio_Failures) | 1345 LIST_TEST(Audio_Failures) |
1342 LIST_TEST(Audio_AudioCallback1) | 1346 LIST_TEST(Audio_AudioCallback1) |
1343 LIST_TEST(Audio_AudioCallback2)); | 1347 LIST_TEST(Audio_AudioCallback2) |
| 1348 LIST_TEST(Audio_AudioCallback3) |
| 1349 LIST_TEST(Audio_AudioCallback4)); |
1344 } | 1350 } |
1345 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(Audio)) { | 1351 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(Audio)) { |
1346 RunTestViaHTTP(LIST_TEST(Audio_Creation) | 1352 RunTestViaHTTP(LIST_TEST(Audio_Creation) |
1347 LIST_TEST(Audio_DestroyNoStop) | 1353 LIST_TEST(Audio_DestroyNoStop) |
1348 LIST_TEST(Audio_Failures) | 1354 LIST_TEST(Audio_Failures) |
1349 LIST_TEST(Audio_AudioCallback1) | 1355 LIST_TEST(Audio_AudioCallback1) |
1350 LIST_TEST(Audio_AudioCallback2)); | 1356 LIST_TEST(Audio_AudioCallback2) |
| 1357 LIST_TEST(Audio_AudioCallback3) |
| 1358 LIST_TEST(Audio_AudioCallback4)); |
1351 } | 1359 } |
1352 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, Audio) { | 1360 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, Audio) { |
1353 RunTestViaHTTP(LIST_TEST(Audio_Creation) | 1361 RunTestViaHTTP(LIST_TEST(Audio_Creation) |
1354 LIST_TEST(Audio_DestroyNoStop) | 1362 LIST_TEST(Audio_DestroyNoStop) |
1355 LIST_TEST(Audio_Failures) | 1363 LIST_TEST(Audio_Failures) |
1356 LIST_TEST(Audio_AudioCallback1) | 1364 LIST_TEST(Audio_AudioCallback1) |
1357 LIST_TEST(Audio_AudioCallback2)); | 1365 LIST_TEST(Audio_AudioCallback2) |
| 1366 LIST_TEST(Audio_AudioCallback3) |
| 1367 LIST_TEST(Audio_AudioCallback4)); |
1358 } | 1368 } |
1359 | 1369 |
1360 TEST_PPAPI_IN_PROCESS(View_CreatedVisible); | 1370 TEST_PPAPI_IN_PROCESS(View_CreatedVisible); |
1361 TEST_PPAPI_OUT_OF_PROCESS(View_CreatedVisible); | 1371 TEST_PPAPI_OUT_OF_PROCESS(View_CreatedVisible); |
1362 TEST_PPAPI_NACL(View_CreatedVisible); | 1372 TEST_PPAPI_NACL(View_CreatedVisible); |
1363 // This test ensures that plugins created in a background tab have their | 1373 // This test ensures that plugins created in a background tab have their |
1364 // initial visibility set to false. We don't bother testing in-process for this | 1374 // initial visibility set to false. We don't bother testing in-process for this |
1365 // custom test since the out of process code also exercises in-process. | 1375 // custom test since the out of process code also exercises in-process. |
1366 | 1376 |
1367 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_CreateInvisible) { | 1377 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_CreateInvisible) { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 #if (defined(OS_WIN) && defined(ENABLE_RLZ)) || defined(OS_CHROMEOS) | 1532 #if (defined(OS_WIN) && defined(ENABLE_RLZ)) || defined(OS_CHROMEOS) |
1523 // Only implemented on Windows and ChromeOS currently. | 1533 // Only implemented on Windows and ChromeOS currently. |
1524 LIST_TEST(FlashDRM_GetDeviceID) | 1534 LIST_TEST(FlashDRM_GetDeviceID) |
1525 #endif | 1535 #endif |
1526 LIST_TEST(FlashDRM_GetHmonitor) | 1536 LIST_TEST(FlashDRM_GetHmonitor) |
1527 LIST_TEST(FlashDRM_GetVoucherFile)); | 1537 LIST_TEST(FlashDRM_GetVoucherFile)); |
1528 } | 1538 } |
1529 | 1539 |
1530 TEST_PPAPI_IN_PROCESS(TalkPrivate) | 1540 TEST_PPAPI_IN_PROCESS(TalkPrivate) |
1531 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) | 1541 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) |
OLD | NEW |