Chromium Code Reviews| 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, |
|
dcheng
2015/03/09 21:14:33
We prefer using foo = bar; to typedefs (http://chr
etrunko
2015/03/09 22:18:10
If I change it, the code fails to build. I think t
|
| + 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_ |