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

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: Use namespace for GetAnyAddress call in order to fix windows build 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
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 // UDPSocket tests. 312 // UDPSocket tests.
313 // UDPSocket_Broadcast is disabled for OSX because it requires root 313 // UDPSocket_Broadcast is disabled for OSX because it requires root
314 // permissions on OSX 10.7+. 314 // permissions on OSX 10.7+.
315 #if defined(OS_MACOSX) 315 #if defined(OS_MACOSX)
316 #define MAYBE_UDPSocket_Broadcast DISABLED_UDPSocket_Broadcast 316 #define MAYBE_UDPSocket_Broadcast DISABLED_UDPSocket_Broadcast
317 #else 317 #else
318 #define MAYBE_UDPSocket_Broadcast UDPSocket_Broadcast 318 #define MAYBE_UDPSocket_Broadcast UDPSocket_Broadcast
319 #endif 319 #endif
320 320
321 #define RUN_UDPSOCKET_SUBTESTS \ 321 #define UDPSOCKET_TEST(_test) \
322 RunTestViaHTTP( \ 322 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, _test) { \
323 LIST_TEST(UDPSocket_ReadWrite) \ 323 RunTestViaHTTP(LIST_TEST(_test)); \
324 LIST_TEST(UDPSocket_SetOption) \ 324 } \
325 LIST_TEST(MAYBE_UDPSocket_Broadcast) \ 325 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, _test) { \
326 LIST_TEST(UDPSocket_ParallelSend)) 326 RunTestViaHTTP(LIST_TEST(_test)); \
327 } \
328 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(_test)) { \
329 RunTestViaHTTP(LIST_TEST(_test)); \
330 } \
331 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, _test) { \
332 RunTestViaHTTP(LIST_TEST(_test)); \
333 } \
334 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, \
335 MAYBE_PNACL_NONSFI(_test)) { \
336 RunTestViaHTTP(LIST_TEST(_test)); \
337 } \
338 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest, \
339 MAYBE_PNACL_TRANSITIONAL_NONSFI(_test)) { \
340 RunTestViaHTTP(LIST_TEST(_test)); \
341 } \
dcheng 2015/03/09 21:14:33 Omit the \ on this line, since it's the last (real
etrunko 2015/03/09 22:18:10 Done.
327 342
328 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, UDPSocket) { 343 // Instead of one single test for all UDPSocket features (like it is done for
329 RUN_UDPSOCKET_SUBTESTS; 344 // TCPSocket), split them into multiple, making it easier to isolate which tests
330 } 345 // are failing.
331 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, UDPSocket) { 346 UDPSOCKET_TEST(UDPSocket_ReadWrite)
332 RUN_UDPSOCKET_SUBTESTS; 347 UDPSOCKET_TEST(UDPSocket_SetOption)
333 } 348 UDPSOCKET_TEST(UDPSocket_SetOption_1_0)
334 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, UDPSocket) { 349 UDPSOCKET_TEST(UDPSocket_SetOption_1_1)
335 RUN_UDPSOCKET_SUBTESTS; 350 UDPSOCKET_TEST(MAYBE_UDPSocket_Broadcast)
336 } 351 UDPSOCKET_TEST(UDPSocket_ParallelSend)
337 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, 352 UDPSOCKET_TEST(UDPSocket_Multicast)
338 MAYBE_PNACL_NONSFI(UDPSocket)) {
339 RUN_UDPSOCKET_SUBTESTS;
340 }
341 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest,
342 MAYBE_PNACL_TRANSITIONAL_NONSFI(UDPSocket)) {
343 RUN_UDPSOCKET_SUBTESTS;
344 }
345
346 353
347 // UDPSocketPrivate tests. 354 // UDPSocketPrivate tests.
348 // UDPSocketPrivate_Broadcast is disabled for OSX because it requires root 355 // UDPSocketPrivate_Broadcast is disabled for OSX because it requires root
349 // permissions on OSX 10.7+. 356 // permissions on OSX 10.7+.
350 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Connect) 357 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Connect)
351 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_ConnectFailure) 358 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_ConnectFailure)
352 #if !defined(OS_MACOSX) 359 #if !defined(OS_MACOSX)
353 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Broadcast) 360 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Broadcast)
354 #endif // !defined(OS_MACOSX) 361 #endif // !defined(OS_MACOSX)
355 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_SetSocketFeatureErrors) 362 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_SetSocketFeatureErrors)
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 #endif 1426 #endif
1420 1427
1421 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(Mojo)) { 1428 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(Mojo)) {
1422 RunTest(); 1429 RunTest();
1423 } 1430 }
1424 1431
1425 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(MojoFailsWithoutFlag)) { 1432 IN_PROC_BROWSER_TEST_F(MojoPPAPITest, MAYBE_MOJO(MojoFailsWithoutFlag)) {
1426 RunTestWithoutFlag(); 1433 RunTestWithoutFlag();
1427 } 1434 }
1428 #endif 1435 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698