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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_browsertest.cc
diff --git a/chrome/test/ppapi/ppapi_browsertest.cc b/chrome/test/ppapi/ppapi_browsertest.cc
index b3fbc3fca96c8501f3d787ab4f7df3f29227caa3..aec526d7e9b0954be245b70bc25ecae20c1e6107 100644
--- a/chrome/test/ppapi/ppapi_browsertest.cc
+++ b/chrome/test/ppapi/ppapi_browsertest.cc
@@ -319,31 +319,38 @@ TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(TCPSocketPrivateTrusted)
#define MAYBE_UDPSocket_Broadcast UDPSocket_Broadcast
#endif
-#define RUN_UDPSOCKET_SUBTESTS \
- RunTestViaHTTP( \
- LIST_TEST(UDPSocket_ReadWrite) \
- LIST_TEST(UDPSocket_SetOption) \
- LIST_TEST(MAYBE_UDPSocket_Broadcast) \
- LIST_TEST(UDPSocket_ParallelSend))
-
-IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, UDPSocket) {
- RUN_UDPSOCKET_SUBTESTS;
-}
-IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, UDPSocket) {
- RUN_UDPSOCKET_SUBTESTS;
-}
-IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, UDPSocket) {
- RUN_UDPSOCKET_SUBTESTS;
-}
-IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest,
- MAYBE_PNACL_NONSFI(UDPSocket)) {
- RUN_UDPSOCKET_SUBTESTS;
-}
-IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest,
- MAYBE_PNACL_TRANSITIONAL_NONSFI(UDPSocket)) {
- RUN_UDPSOCKET_SUBTESTS;
-}
+#define UDPSOCKET_TEST(_test) \
+ IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, _test) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ } \
+ IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, _test) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ } \
+ IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(_test)) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ } \
+ IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, _test) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ } \
+ IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, \
+ MAYBE_PNACL_NONSFI(_test)) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ } \
+ IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTransitionalNonSfiTest, \
+ MAYBE_PNACL_TRANSITIONAL_NONSFI(_test)) { \
+ RunTestViaHTTP(LIST_TEST(_test)); \
+ }
+// Instead of one single test for all UDPSocket features (like it is done for
+// TCPSocket), split them into multiple, making it easier to isolate which tests
+// are failing.
+UDPSOCKET_TEST(UDPSocket_ReadWrite)
+UDPSOCKET_TEST(UDPSocket_SetOption)
+UDPSOCKET_TEST(UDPSocket_SetOption_1_0)
+UDPSOCKET_TEST(UDPSocket_SetOption_1_1)
+UDPSOCKET_TEST(MAYBE_UDPSocket_Broadcast)
+UDPSOCKET_TEST(UDPSocket_ParallelSend)
+UDPSOCKET_TEST(UDPSocket_Multicast)
// UDPSocketPrivate tests.
// UDPSocketPrivate_Broadcast is disabled for OSX because it requires root
« 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