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

Side by Side Diff: ppapi/tests/test_udp_socket_private.h

Issue 9791003: Added pepper test for SSLHandshake (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PRIVATE_SHARED_H_ 5 #ifndef PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_H_
6 #define PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_SHARED_H_ 6 #define PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_H_
7 7
8 #include "ppapi/cpp/private/tcp_socket_private.h" 8 #include "ppapi/cpp/private/tcp_socket_private.h"
9 #include "ppapi/cpp/private/udp_socket_private.h" 9 #include "ppapi/cpp/private/udp_socket_private.h"
10 #include "ppapi/tests/test_case.h" 10 #include "ppapi/tests/test_case.h"
11 11
12 class TestUDPSocketPrivateShared : public TestCase { 12 class TestUDPSocketPrivate : public TestCase {
13 public: 13 public:
14 explicit TestUDPSocketPrivateShared(TestingInstance* instance); 14 explicit TestUDPSocketPrivate(TestingInstance* instance);
15 15
16 // TestCase implementation. 16 // TestCase implementation.
17 virtual bool Init(); 17 virtual bool Init();
18 virtual void RunTests(const std::string& filter); 18 virtual void RunTests(const std::string& filter);
19 19
20 void QuitMessageLoop();
21
22 private: 20 private:
23 // Creates tcp_socket and connects to www.google.com:80. After that, 21 // Creates tcp_socket and connects to www.google.com:80. After that,
24 // stores into |address| local address and returns created 22 // stores into |address| local address and returns created
25 // tcp_socket. This is a way to create |PP_NetAddress_Private| 23 // tcp_socket. This is a way to create |PP_NetAddress_Private|
26 // structure filled with local IP and some free port. 24 // structure filled with local IP and some free port.
27 std::string GenerateNetAddress(PP_Resource* socket, 25 std::string GenerateNetAddress(PP_Resource* socket,
28 PP_NetAddress_Private* address); 26 PP_NetAddress_Private* address);
29 std::string CreateAndBindUDPSocket(PP_NetAddress_Private *address, 27 std::string CreateAndBindUDPSocket(PP_NetAddress_Private *address,
30 PP_Resource *socket); 28 PP_Resource *socket);
31 std::string BindUDPSocketFailure(PP_NetAddress_Private *address, 29 std::string BindUDPSocketFailure(PP_NetAddress_Private *address,
32 PP_Resource *socket); 30 PP_Resource *socket);
33 31
34 std::string TestCreate(); 32 std::string TestCreate();
35 std::string TestConnect(); 33 std::string TestConnect();
36 std::string TestConnectFailure(); 34 std::string TestConnectFailure();
37 35
38 const PPB_TCPSocket_Private* tcp_socket_private_interface_; 36 const PPB_TCPSocket_Private* tcp_socket_private_interface_;
39 const PPB_UDPSocket_Private* udp_socket_private_interface_; 37 const PPB_UDPSocket_Private* udp_socket_private_interface_;
40 std::string host_; 38 std::string host_;
41 uint16_t port_; 39 uint16_t port_;
42 }; 40 };
43 41
44 #endif // PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_SHARED_H_ 42 #endif // PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698