OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef PPAPI_TESTS_TEST_UDP_SOCKET_H_ | 5 #ifndef PPAPI_TESTS_TEST_UDP_SOCKET_H_ |
6 #define PPAPI_TESTS_TEST_UDP_SOCKET_H_ | 6 #define PPAPI_TESTS_TEST_UDP_SOCKET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 pp::NetAddress* address); | 32 pp::NetAddress* address); |
33 std::string ReadSocket(pp::UDPSocket* socket, | 33 std::string ReadSocket(pp::UDPSocket* socket, |
34 pp::NetAddress* address, | 34 pp::NetAddress* address, |
35 size_t size, | 35 size_t size, |
36 std::string* message); | 36 std::string* message); |
37 std::string PassMessage(pp::UDPSocket* target, | 37 std::string PassMessage(pp::UDPSocket* target, |
38 pp::UDPSocket* source, | 38 pp::UDPSocket* source, |
39 const pp::NetAddress& target_address, | 39 const pp::NetAddress& target_address, |
40 const std::string& message, | 40 const std::string& message, |
41 pp::NetAddress* recvfrom_address); | 41 pp::NetAddress* recvfrom_address); |
| 42 std::string SetMulticastOptions(pp::UDPSocket* socket); |
42 | 43 |
43 std::string TestReadWrite(); | 44 std::string TestReadWrite(); |
44 std::string TestBroadcast(); | 45 std::string TestBroadcast(); |
| 46 std::string TestSetOption_1_0(); |
| 47 std::string TestSetOption_1_1(); |
45 std::string TestSetOption(); | 48 std::string TestSetOption(); |
46 std::string TestParallelSend(); | 49 std::string TestParallelSend(); |
| 50 std::string TestMulticast(); |
47 | 51 |
48 pp::NetAddress address_; | 52 pp::NetAddress address_; |
| 53 |
| 54 const PPB_UDPSocket_1_0* socket_interface_1_0_; |
| 55 const PPB_UDPSocket_1_1* socket_interface_1_1_; |
49 }; | 56 }; |
50 | 57 |
51 #endif // PPAPI_TESTS_TEST_UDP_SOCKET_H_ | 58 #endif // PPAPI_TESTS_TEST_UDP_SOCKET_H_ |
OLD | NEW |