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

Side by Side Diff: remoting/protocol/ice_transport_unittest.cc

Issue 2812053002: ice_transport_unittest.cc: Remove dead code. (Closed)
Patch Set: Created 3 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/protocol/ice_transport.h" 5 #include "remoting/protocol/ice_transport.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 22 matching lines...) Expand all
33 namespace protocol { 33 namespace protocol {
34 34
35 namespace { 35 namespace {
36 36
37 // Send 100 messages 1024 bytes each. UDP messages are sent with 10ms delay 37 // Send 100 messages 1024 bytes each. UDP messages are sent with 10ms delay
38 // between messages (about 1 second for 100 messages). 38 // between messages (about 1 second for 100 messages).
39 const int kMessageSize = 1024; 39 const int kMessageSize = 1024;
40 const int kMessages = 100; 40 const int kMessages = 100;
41 const char kChannelName[] = "test_channel"; 41 const char kChannelName[] = "test_channel";
42 42
43 ACTION_P(QuitRunLoop, run_loop) {
44 run_loop->Quit();
45 }
46
47 ACTION_P2(QuitRunLoopOnCounter, run_loop, counter) { 43 ACTION_P2(QuitRunLoopOnCounter, run_loop, counter) {
48 --(*counter); 44 --(*counter);
49 EXPECT_GE(*counter, 0); 45 EXPECT_GE(*counter, 0);
50 if (*counter == 0) 46 if (*counter == 0)
51 run_loop->Quit(); 47 run_loop->Quit();
52 } 48 }
53 49
54 class MockChannelCreatedCallback { 50 class MockChannelCreatedCallback {
55 public: 51 public:
56 MOCK_METHOD1(OnDone, void(MessagePipe* socket)); 52 MOCK_METHOD1(OnDone, void(MessagePipe* socket));
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 333
338 MessagePipeConnectionTester tester(host_message_pipe_.get(), 334 MessagePipeConnectionTester tester(host_message_pipe_.get(),
339 client_message_pipe_.get(), kMessageSize, 335 client_message_pipe_.get(), kMessageSize,
340 kMessages); 336 kMessages);
341 tester.RunAndCheckResults(); 337 tester.RunAndCheckResults();
342 } 338 }
343 339
344 340
345 } // namespace protocol 341 } // namespace protocol
346 } // namespace remoting 342 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698