Remove extra line from unit_tests.isolate
[chromium-blink-merge.git] / ppapi / tests / test_tcp_socket_private.h
blob4c31853e0056977e734e9e76e11877d5507de955
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
3 // found in the LICENSE file.
5 #ifndef PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_
6 #define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_
8 #include <string>
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/tests/test_case.h"
13 namespace pp {
14 class TCPSocketPrivate;
17 class TestTCPSocketPrivate : public TestCase {
18 public:
19 explicit TestTCPSocketPrivate(TestingInstance* instance);
21 // TestCase implementation.
22 virtual bool Init();
23 virtual void RunTests(const std::string& filter);
25 private:
26 std::string TestBasic();
27 std::string TestReadWrite();
28 std::string TestReadWriteSSL();
29 std::string TestConnectAddress();
31 int32_t ReadFirstLineFromSocket(pp::TCPSocketPrivate* socket, std::string* s);
32 int32_t WriteStringToSocket(pp::TCPSocketPrivate* socket,
33 const std::string& s);
35 std::string host_;
36 uint16_t port_;
37 uint16_t ssl_port_;
40 #endif // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_H_