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

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 unit tests, thunk code auto generated Created 5 years, 10 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
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..1b8b35d3da97d9b914d565758551cd6d8dad682a 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,25 @@ 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,
+ 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_;
+ bool has_interface_1_2_;
};
#endif // PPAPI_TESTS_TEST_UDP_SOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698