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

Unified Diff: ppapi/tests/test_udp_socket.h

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 | « ppapi/shared_impl/private/net_address_private_impl.cc ('k') | ppapi/tests/test_udp_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_udp_socket.h
diff --git a/ppapi/tests/test_udp_socket.h b/ppapi/tests/test_udp_socket.h
index 2a2a473508462b5ea3ee5656e35254e4ca9d0403..ee3e6722aeae323b38f2112045ed052f3f2a12c1 100644
--- a/ppapi/tests/test_udp_socket.h
+++ b/ppapi/tests/test_udp_socket.h
@@ -8,9 +8,17 @@
#include <string>
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/ppb_udp_socket.h"
#include "ppapi/cpp/net_address.h"
#include "ppapi/tests/test_case.h"
+namespace {
+typedef int32_t (*UDPSocketSetOption)(PP_Resource udp_socket,
+ PP_UDPSocket_Option name,
+ struct PP_Var value,
+ struct PP_CompletionCallback callback);
+}
+
namespace pp {
class UDPSocket;
}
@@ -39,13 +47,24 @@ class TestUDPSocket: public TestCase {
const pp::NetAddress& target_address,
const std::string& message,
pp::NetAddress* recvfrom_address);
+ std::string SetMulticastOptions(pp::UDPSocket* socket);
std::string TestReadWrite();
std::string TestBroadcast();
+ int32_t SetOptionValue(UDPSocketSetOption func,
+ PP_Resource socket,
+ PP_UDPSocket_Option option,
+ const PP_Var& value);
+ std::string TestSetOption_1_0();
+ std::string TestSetOption_1_1();
std::string TestSetOption();
std::string TestParallelSend();
+ std::string TestMulticast();
pp::NetAddress address_;
+
+ const PPB_UDPSocket_1_0* socket_interface_1_0_;
+ const PPB_UDPSocket_1_1* socket_interface_1_1_;
};
#endif // PPAPI_TESTS_TEST_UDP_SOCKET_H_
« no previous file with comments | « ppapi/shared_impl/private/net_address_private_impl.cc ('k') | ppapi/tests/test_udp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698