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

Side by Side Diff: chrome/test/ppapi/ppapi_browsertest.cc

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo: SetMulticastInterface -> SetMulticastTimeToLive Created 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h » ('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 #include "base/path_service.h" 5 #include "base/path_service.h"
6 #include "base/test/test_timeouts.h" 6 #include "base/test/test_timeouts.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/extensions/extension_browsertest.h" 8 #include "chrome/browser/extensions/extension_browsertest.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 // UDPSocket tests. 313 // UDPSocket tests.
314 // UDPSocket_Broadcast is disabled for OSX because it requires root 314 // UDPSocket_Broadcast is disabled for OSX because it requires root
315 // permissions on OSX 10.7+. 315 // permissions on OSX 10.7+.
316 #if defined(OS_MACOSX) 316 #if defined(OS_MACOSX)
317 #define MAYBE_UDPSocket_Broadcast DISABLED_UDPSocket_Broadcast 317 #define MAYBE_UDPSocket_Broadcast DISABLED_UDPSocket_Broadcast
318 #else 318 #else
319 #define MAYBE_UDPSocket_Broadcast UDPSocket_Broadcast 319 #define MAYBE_UDPSocket_Broadcast UDPSocket_Broadcast
320 #endif 320 #endif
321 321
322 #define RUN_UDPSOCKET_SUBTESTS \ 322 #define UDPSOCKET_TEST(_test) \
323 RunTestViaHTTP( \ 323 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, _test) { \
324 LIST_TEST(UDPSocket_ReadWrite) \ 324 RunTestViaHTTP(LIST_TEST(_test)); \
325 LIST_TEST(UDPSocket_SetOption) \ 325 } \
326 LIST_TEST(MAYBE_UDPSocket_Broadcast) \ 326 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, _test) { \
327 LIST_TEST(UDPSocket_ParallelSend)) 327 RunTestViaHTTP(LIST_TEST(_test)); \
328 } \
329 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(_test)) { \
330 RunTestViaHTTP(LIST_TEST(_test)); \
331 } \
332 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, _test) { \
333 RunTestViaHTTP(LIST_TEST(_test)); \
334 } \
335 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, \
336 MAYBE_PNACL_NONSFI(_test)) { \
337 RunTestViaHTTP(LIST_TEST(_test)); \
338 } \
339 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest, \
340 MAYBE_PNACL_TRANSITIONAL_NONSFI(_test)) { \
341 RunTestViaHTTP(LIST_TEST(_test)); \
342 }
328 343
329 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, UDPSocket) { 344 // Instead of one single test for all UDPSocket features (like it is done for
330 RUN_UDPSOCKET_SUBTESTS; 345 // TCPSocket), split them into multiple, making it easier to isolate which tests
331 } 346 // are failing.
332 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, UDPSocket) { 347 UDPSOCKET_TEST(UDPSocket_ReadWrite)
333 RUN_UDPSOCKET_SUBTESTS; 348 UDPSOCKET_TEST(UDPSocket_SetOption)
334 } 349 UDPSOCKET_TEST(UDPSocket_SetOption_1_0)
335 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, UDPSocket) { 350 UDPSOCKET_TEST(UDPSocket_SetOption_1_1)
336 RUN_UDPSOCKET_SUBTESTS; 351 UDPSOCKET_TEST(MAYBE_UDPSocket_Broadcast)
337 } 352 UDPSOCKET_TEST(UDPSocket_ParallelSend)
338 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, 353 UDPSOCKET_TEST(UDPSocket_Multicast)
339 MAYBE_PNACL_NONSFI(UDPSocket)) {
340 RUN_UDPSOCKET_SUBTESTS;
341 }
342 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest,
343 MAYBE_PNACL_TRANSITIONAL_NONSFI(UDPSocket)) {
344 RUN_UDPSOCKET_SUBTESTS;
345 }
346
347 354
348 // UDPSocketPrivate tests. 355 // UDPSocketPrivate tests.
349 // UDPSocketPrivate_Broadcast is disabled for OSX because it requires root 356 // UDPSocketPrivate_Broadcast is disabled for OSX because it requires root
350 // permissions on OSX 10.7+. 357 // permissions on OSX 10.7+.
351 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Connect) 358 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Connect)
352 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_ConnectFailure) 359 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_ConnectFailure)
353 #if !defined(OS_MACOSX) 360 #if !defined(OS_MACOSX)
354 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Broadcast) 361 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Broadcast)
355 #endif // !defined(OS_MACOSX) 362 #endif // !defined(OS_MACOSX)
356 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_SetSocketFeatureErrors) 363 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_SetSocketFeatureErrors)
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 #endif 1430 #endif
1424 1431
1425 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(Mojo)) { 1432 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(Mojo)) {
1426 RunTest(); 1433 RunTest();
1427 } 1434 }
1428 1435
1429 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(MojoFailsWithoutFlag)) { 1436 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(MojoFailsWithoutFlag)) {
1430 RunTestWithoutFlag(); 1437 RunTestWithoutFlag();
1431 } 1438 }
1432 #endif 1439 #endif
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698