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

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

Issue 8764004: Add DEPS include rules so we don't accidentally use base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove rules to include self where possible 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_tcp_socket_private.cc ('k') | ppapi/tests/test_transport.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 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"
11 #include "ppapi/c/dev/ppb_transport_dev.h" 10 #include "ppapi/c/dev/ppb_transport_dev.h"
12 #include "ppapi/tests/test_case.h" 11 #include "ppapi/tests/test_case.h"
13 12
14 struct PPB_Transport_Dev; 13 struct PPB_Transport_Dev;
15 14
16 namespace pp { 15 namespace pp {
17 class Transport_Dev; 16 class Transport_Dev;
18 } // namespace pp 17 } // namespace pp
19 18
20 class TestTransport : public TestCase { 19 class TestTransport : public TestCase {
21 public: 20 public:
22 explicit TestTransport(TestingInstance* instance) : TestCase(instance) {} 21 explicit TestTransport(TestingInstance* instance)
22 : TestCase(instance),
23 transport1_(NULL),
24 transport2_(NULL) {
25 }
26 virtual ~TestTransport();
27
23 28
24 // TestCase implementation. 29 // TestCase implementation.
25 virtual bool Init(); 30 virtual bool Init();
26 virtual void RunTests(const std::string& filter); 31 virtual void RunTests(const std::string& filter);
27 32
28 private: 33 private:
29 std::string InitTargets(PP_TransportType type); 34 std::string InitTargets(PP_TransportType type);
30 std::string Connect(); 35 std::string Connect();
31 std::string Clean(); 36 std::string Clean();
32 37
33 std::string TestCreate(); 38 std::string TestCreate();
34 std::string TestConnect(); 39 std::string TestConnect();
35 std::string TestSetProperty(); 40 std::string TestSetProperty();
36 std::string TestSendDataTcp(); 41 std::string TestSendDataTcp();
37 std::string TestSendDataUdp(); 42 std::string TestSendDataUdp();
38 std::string TestConnectAndCloseTcp(); 43 std::string TestConnectAndCloseTcp();
39 std::string TestConnectAndCloseUdp(); 44 std::string TestConnectAndCloseUdp();
40 45
41 // Used by the tests that access the C API directly. 46 // Used by the tests that access the C API directly.
42 const PPB_Transport_Dev* transport_interface_; 47 const PPB_Transport_Dev* transport_interface_;
43 48
44 scoped_ptr<pp::Transport_Dev> transport1_; 49 pp::Transport_Dev* transport1_;
45 scoped_ptr<pp::Transport_Dev> transport2_; 50 pp::Transport_Dev* transport2_;
46 }; 51 };
47 52
48 #endif // PPAPI_TESTS_TEST_TRANSPORT_H_ 53 #endif // PPAPI_TESTS_TEST_TRANSPORT_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_tcp_socket_private.cc ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698