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

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

Issue 8536031: Reland http://codereview.chromium.org/8477015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge AGAIN Created 9 years, 1 month 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
« no previous file with comments | « ppapi/tests/test_scrollbar.cc ('k') | ppapi/tests/test_tcp_socket_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_ 5 #ifndef PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_
6 #define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_ 6 #define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_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"
11 #include "ppapi/tests/test_case.h" 11 #include "ppapi/tests/test_case.h"
12 12
13 // TODO(viettrungluu): A rename is in progress and this reduces the amount of 13 // TODO(viettrungluu): A rename is in progress and this reduces the amount of
14 // code that'll have to be changed. 14 // code that'll have to be changed.
15 namespace pp { 15 namespace pp {
16 namespace flash { 16 namespace flash {
17 class TCPSocket; 17 class TCPSocket;
18 } 18 }
19 } 19 }
20 typedef pp::flash::TCPSocket TCPSocketPrivate; 20 typedef pp::flash::TCPSocket TCPSocketPrivate;
21 21
22 class TestTCPSocketPrivate : public TestCase { 22 class TestTCPSocketPrivate : public TestCase {
23 public: 23 public:
24 explicit TestTCPSocketPrivate(TestingInstance* instance); 24 explicit TestTCPSocketPrivate(TestingInstance* instance);
25 25
26 // TestCase implementation. 26 // TestCase implementation.
27 virtual bool Init(); 27 virtual bool Init();
28 virtual void RunTest(); 28 virtual void RunTests(const std::string& filter);
29 29
30 private: 30 private:
31 std::string TestBasic(); 31 std::string TestBasic();
32 std::string TestReadWrite(); 32 std::string TestReadWrite();
33 std::string TestConnectAddress(); 33 std::string TestConnectAddress();
34 34
35 int32_t ReadFirstLineFromSocket(TCPSocketPrivate* socket, std::string* s); 35 int32_t ReadFirstLineFromSocket(TCPSocketPrivate* socket, std::string* s);
36 int32_t WriteStringToSocket(TCPSocketPrivate* socket, const std::string& s); 36 int32_t WriteStringToSocket(TCPSocketPrivate* socket, const std::string& s);
37 37
38 std::string host_; 38 std::string host_;
39 uint16_t port_; 39 uint16_t port_;
40 }; 40 };
41 41
42 #endif // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_ 42 #endif // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_scrollbar.cc ('k') | ppapi/tests/test_tcp_socket_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698