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

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

Issue 8879009: In ppapi/tests: |... const*| -> |const ...*| (for consistency). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 #include "ppapi/tests/test_transport.h" 5 #include "ppapi/tests/test_transport.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 } // namespace 97 } // namespace
98 98
99 TestTransport::~TestTransport() { 99 TestTransport::~TestTransport() {
100 delete transport1_; 100 delete transport1_;
101 delete transport2_; 101 delete transport2_;
102 } 102 }
103 103
104 bool TestTransport::Init() { 104 bool TestTransport::Init() {
105 transport_interface_ = reinterpret_cast<PPB_Transport_Dev const*>( 105 transport_interface_ = static_cast<const PPB_Transport_Dev*>(
106 pp::Module::Get()->GetBrowserInterface(PPB_TRANSPORT_DEV_INTERFACE)); 106 pp::Module::Get()->GetBrowserInterface(PPB_TRANSPORT_DEV_INTERFACE));
107 return transport_interface_ && InitTestingInterface(); 107 return transport_interface_ && InitTestingInterface();
108 } 108 }
109 109
110 void TestTransport::RunTests(const std::string& filter) { 110 void TestTransport::RunTests(const std::string& filter) {
111 RUN_TEST(Create, filter); 111 RUN_TEST(Create, filter);
112 RUN_TEST_FORCEASYNC_AND_NOT(Connect, filter); 112 RUN_TEST_FORCEASYNC_AND_NOT(Connect, filter);
113 RUN_TEST(SetProperty, filter); 113 RUN_TEST(SetProperty, filter);
114 RUN_TEST_FORCEASYNC_AND_NOT(SendDataUdp, filter); 114 RUN_TEST_FORCEASYNC_AND_NOT(SendDataUdp, filter);
115 RUN_TEST_FORCEASYNC_AND_NOT(SendDataTcp, filter); 115 RUN_TEST_FORCEASYNC_AND_NOT(SendDataTcp, filter);
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // Close the transport and verify that callback is aborted. 369 // Close the transport and verify that callback is aborted.
370 ASSERT_EQ(transport1_->Close(), PP_OK); 370 ASSERT_EQ(transport1_->Close(), PP_OK);
371 371
372 ASSERT_EQ(recv_cb.run_count(), 1); 372 ASSERT_EQ(recv_cb.run_count(), 1);
373 ASSERT_EQ(recv_cb.result(), PP_ERROR_ABORTED); 373 ASSERT_EQ(recv_cb.result(), PP_ERROR_ABORTED);
374 374
375 Clean(); 375 Clean();
376 376
377 PASS(); 377 PASS();
378 } 378 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_tcp_socket_private_shared.cc ('k') | ppapi/tests/test_udp_socket_private_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698