OLD | NEW |
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 PPAPI_TESTS_TEST_TRANSPORT_H_ | 5 #ifndef PPAPI_TESTS_TEST_TRANSPORT_H_ |
6 #define PPAPI_TESTS_TEST_TRANSPORT_H_ | 6 #define PPAPI_TESTS_TEST_TRANSPORT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual bool Init(); | 24 virtual bool Init(); |
25 virtual void RunTest(); | 25 virtual void RunTest(); |
26 | 26 |
27 private: | 27 private: |
28 std::string InitTargets(const char* proto); | 28 std::string InitTargets(const char* proto); |
29 std::string Connect(); | 29 std::string Connect(); |
30 std::string Clean(); | 30 std::string Clean(); |
31 | 31 |
32 std::string TestCreate(); | 32 std::string TestCreate(); |
33 std::string TestConnect(); | 33 std::string TestConnect(); |
| 34 std::string TestSetProperty(); |
34 std::string TestSendDataTcp(); | 35 std::string TestSendDataTcp(); |
35 std::string TestSendDataUdp(); | 36 std::string TestSendDataUdp(); |
36 std::string TestConnectAndCloseTcp(); | 37 std::string TestConnectAndCloseTcp(); |
37 std::string TestConnectAndCloseUdp(); | 38 std::string TestConnectAndCloseUdp(); |
38 | 39 |
39 // Used by the tests that access the C API directly. | 40 // Used by the tests that access the C API directly. |
40 const PPB_Transport_Dev* transport_interface_; | 41 const PPB_Transport_Dev* transport_interface_; |
41 | 42 |
42 scoped_ptr<pp::Transport_Dev> transport1_; | 43 scoped_ptr<pp::Transport_Dev> transport1_; |
43 scoped_ptr<pp::Transport_Dev> transport2_; | 44 scoped_ptr<pp::Transport_Dev> transport2_; |
44 }; | 45 }; |
45 | 46 |
46 #endif // PPAPI_TESTS_TEST_TRANSPORT_H_ | 47 #endif // PPAPI_TESTS_TEST_TRANSPORT_H_ |
OLD | NEW |