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

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

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added PPAPI NaCl tests. Created 9 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_SHARED_H_
6 #define PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_SHARED_H_
7
8 #include "ppapi/cpp/private/tcp_socket_private.h"
9 #include "ppapi/cpp/private/udp_socket_private.h"
10 #include "ppapi/tests/test_case.h"
11
12 class TestUDPSocketPrivateShared : public TestCase {
polina 2011/11/29 05:20:47 same as in other file
ygorshenin 2011/11/29 13:25:18 same as in other file
13 public:
14 explicit TestUDPSocketPrivateShared(TestingInstance* instance)
15 : TestCase(instance) {
polina 2011/11/29 05:20:47 same as in other file
ygorshenin 2011/11/29 13:25:18 Done.
16 }
17
18 // TestCase implementation.
19 virtual bool Init();
20 virtual void RunTests(const std::string& filter);
21
22 void QuitMessageLoop();
23
24 private:
25 // Creates tcp_socket and connects to www.google.com:80. After that,
26 // stores into |address| local address and returns created
27 // tcp_socket. This is a way to create |PP_NetAddress_Private|
28 // structure filled with local IP and some free port.
29 std::string GenerateNetAddress(PP_Resource* socket,
30 PP_NetAddress_Private* address);
31 std::string CreateAndBindUDPSocket(const PP_NetAddress_Private *address,
32 PP_Resource *socket);
33
34 std::string TestCreate();
35 std::string TestConnect();
36
37 const PPB_TCPSocket_Private* tcp_socket_private_interface_;
38 const PPB_UDPSocket_Private* udp_socket_private_interface_;
39 };
40
41 #endif // PPAPI_TESTS_TEST_UDP_SOCKET_PRIVATE_SHARED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698