| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Flaky on Linux and Windows. http://crbug.com/135403 | 199 // Flaky on Linux and Windows. http://crbug.com/135403 |
| 200 #if defined(OS_LINUX) || defined(OS_WIN) | 200 #if defined(OS_LINUX) || defined(OS_WIN) |
| 201 #define MAYBE_ImeInputEvent DISABLED_ImeInputEvent | 201 #define MAYBE_ImeInputEvent DISABLED_ImeInputEvent |
| 202 #else | 202 #else |
| 203 #define MAYBE_ImeInputEvent ImeInputEvent | 203 #define MAYBE_ImeInputEvent ImeInputEvent |
| 204 #endif | 204 #endif |
| 205 | 205 |
| 206 TEST_PPAPI_OUT_OF_PROCESS(MAYBE_ImeInputEvent) | 206 TEST_PPAPI_OUT_OF_PROCESS(MAYBE_ImeInputEvent) |
| 207 TEST_PPAPI_NACL(MAYBE_ImeInputEvent) | 207 TEST_PPAPI_NACL(MAYBE_ImeInputEvent) |
| 208 | 208 |
| 209 // We run and reload the RecursiveObjects test to ensure that the InstanceObject | |
| 210 // (and others) are properly cleaned up after the first run. | |
| 211 IN_PROC_BROWSER_TEST_F(PPAPITest, Instance_RecursiveObjects) { | |
| 212 RunTestAndReload("Instance_RecursiveObjects"); | |
| 213 } | |
| 214 // TODO(dmichael): Make it work out-of-process (or at least see whether we | |
| 215 // care). | |
| 216 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, | |
| 217 DISABLED_Instance_RecursiveObjects) { | |
| 218 RunTestAndReload("Instance_RecursiveObjects"); | |
| 219 } | |
| 220 | |
| 221 // Graphics2D_Dev isn't supported in NaCl, only test the other interfaces | 209 // Graphics2D_Dev isn't supported in NaCl, only test the other interfaces |
| 222 // TODO(jhorwich) Enable when Graphics2D_Dev interfaces are proxied in NaCl. | 210 // TODO(jhorwich) Enable when Graphics2D_Dev interfaces are proxied in NaCl. |
| 223 TEST_PPAPI_NACL(Graphics2D_InvalidResource) | 211 TEST_PPAPI_NACL(Graphics2D_InvalidResource) |
| 224 TEST_PPAPI_NACL(Graphics2D_InvalidSize) | 212 TEST_PPAPI_NACL(Graphics2D_InvalidSize) |
| 225 TEST_PPAPI_NACL(Graphics2D_Humongous) | 213 TEST_PPAPI_NACL(Graphics2D_Humongous) |
| 226 TEST_PPAPI_NACL(Graphics2D_InitToZero) | 214 TEST_PPAPI_NACL(Graphics2D_InitToZero) |
| 227 TEST_PPAPI_NACL(Graphics2D_Describe) | 215 TEST_PPAPI_NACL(Graphics2D_Describe) |
| 228 TEST_PPAPI_NACL(Graphics2D_Paint) | 216 TEST_PPAPI_NACL(Graphics2D_Paint) |
| 229 TEST_PPAPI_NACL(Graphics2D_Scroll) | 217 TEST_PPAPI_NACL(Graphics2D_Scroll) |
| 230 TEST_PPAPI_NACL(Graphics2D_Replace) | 218 TEST_PPAPI_NACL(Graphics2D_Replace) |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 } | 1197 } |
| 1210 #if defined(OS_LINUX) // Disabled due to flakiness http://crbug.com/316925 | 1198 #if defined(OS_LINUX) // Disabled due to flakiness http://crbug.com/316925 |
| 1211 #define MAYBE_FlashMessageLoop DISABLED_FlashMessageLoop | 1199 #define MAYBE_FlashMessageLoop DISABLED_FlashMessageLoop |
| 1212 #else | 1200 #else |
| 1213 #define MAYBE_FlashMessageLoop FlashMessageLoop | 1201 #define MAYBE_FlashMessageLoop FlashMessageLoop |
| 1214 #endif | 1202 #endif |
| 1215 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MAYBE_FlashMessageLoop) { | 1203 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MAYBE_FlashMessageLoop) { |
| 1216 RUN_FLASH_MESSAGE_LOOP_SUBTESTS; | 1204 RUN_FLASH_MESSAGE_LOOP_SUBTESTS; |
| 1217 } | 1205 } |
| 1218 | 1206 |
| 1219 TEST_PPAPI_OUT_OF_PROCESS(MediaStreamAudioTrack) | |
| 1220 TEST_PPAPI_NACL(MediaStreamAudioTrack) | 1207 TEST_PPAPI_NACL(MediaStreamAudioTrack) |
| 1221 | 1208 |
| 1222 TEST_PPAPI_OUT_OF_PROCESS(MediaStreamVideoTrack) | |
| 1223 TEST_PPAPI_NACL(MediaStreamVideoTrack) | 1209 TEST_PPAPI_NACL(MediaStreamVideoTrack) |
| 1224 | 1210 |
| 1225 TEST_PPAPI_IN_PROCESS(MouseCursor) | |
| 1226 TEST_PPAPI_OUT_OF_PROCESS(MouseCursor) | |
| 1227 TEST_PPAPI_NACL(MouseCursor) | 1211 TEST_PPAPI_NACL(MouseCursor) |
| 1228 | 1212 |
| 1229 // PPB_NetworkProxy is not supported in-process. | |
| 1230 TEST_PPAPI_OUT_OF_PROCESS(NetworkProxy) | |
| 1231 TEST_PPAPI_NACL(NetworkProxy) | 1213 TEST_PPAPI_NACL(NetworkProxy) |
| 1232 | 1214 |
| 1233 TEST_PPAPI_OUT_OF_PROCESS(TrueTypeFont) | |
| 1234 TEST_PPAPI_NACL(TrueTypeFont) | 1215 TEST_PPAPI_NACL(TrueTypeFont) |
| 1235 | 1216 |
| 1217 // VideoDestination doesn't work in content_browsertests. |
| 1236 TEST_PPAPI_OUT_OF_PROCESS(VideoDestination) | 1218 TEST_PPAPI_OUT_OF_PROCESS(VideoDestination) |
| 1237 TEST_PPAPI_NACL(VideoDestination) | 1219 TEST_PPAPI_NACL(VideoDestination) |
| 1238 | 1220 |
| 1221 // VideoSource doesn't work in content_browsertests. |
| 1239 TEST_PPAPI_OUT_OF_PROCESS(VideoSource) | 1222 TEST_PPAPI_OUT_OF_PROCESS(VideoSource) |
| 1240 TEST_PPAPI_NACL(VideoSource) | 1223 TEST_PPAPI_NACL(VideoSource) |
| 1241 | 1224 |
| 1242 // PPB_Printing only implemented for out of process. | 1225 // Printing doesn't work in content_browsertests. |
| 1243 TEST_PPAPI_OUT_OF_PROCESS(Printing) | 1226 TEST_PPAPI_OUT_OF_PROCESS(Printing) |
| 1244 | 1227 |
| 1245 // PPB_MessageLoop is only supported out-of-process. | 1228 TEST_PPAPI_NACL(MessageLoop_Basics) |
| 1246 // TODO(dmichael): Enable for NaCl with the IPC proxy. crbug.com/116317 | 1229 TEST_PPAPI_NACL(MessageLoop_Post) |
| 1247 TEST_PPAPI_OUT_OF_PROCESS(MessageLoop_Basics) | |
| 1248 // MessageLoop_Post starts a thread so only run it if pepper threads are | |
| 1249 // enabled. | |
| 1250 #ifdef ENABLE_PEPPER_THREADING | |
| 1251 TEST_PPAPI_OUT_OF_PROCESS(MessageLoop_Post) | |
| 1252 #endif | |
| 1253 | 1230 |
| 1254 // Going forward, Flash APIs will only work out-of-process. | 1231 // Going forward, Flash APIs will only work out-of-process. |
| 1255 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) | 1232 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) |
| 1256 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) | 1233 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) |
| 1257 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetSetting) | 1234 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetSetting) |
| 1258 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetCrashData) | 1235 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetCrashData) |
| 1259 // http://crbug.com/176822 | 1236 // http://crbug.com/176822 |
| 1260 #if !defined(OS_WIN) | 1237 #if !defined(OS_WIN) |
| 1261 TEST_PPAPI_OUT_OF_PROCESS(FlashClipboard) | 1238 TEST_PPAPI_OUT_OF_PROCESS(FlashClipboard) |
| 1262 #endif | 1239 #endif |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1288 LIST_TEST(FlashDRM_GetHmonitor) | 1265 LIST_TEST(FlashDRM_GetHmonitor) |
| 1289 LIST_TEST(FlashDRM_GetVoucherFile)); | 1266 LIST_TEST(FlashDRM_GetVoucherFile)); |
| 1290 } | 1267 } |
| 1291 | 1268 |
| 1292 TEST_PPAPI_IN_PROCESS(TalkPrivate) | 1269 TEST_PPAPI_IN_PROCESS(TalkPrivate) |
| 1293 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) | 1270 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) |
| 1294 | 1271 |
| 1295 #if defined(OS_CHROMEOS) | 1272 #if defined(OS_CHROMEOS) |
| 1296 TEST_PPAPI_OUT_OF_PROCESS(OutputProtectionPrivate) | 1273 TEST_PPAPI_OUT_OF_PROCESS(OutputProtectionPrivate) |
| 1297 #endif | 1274 #endif |
| OLD | NEW |