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

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

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); 88 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
89 network_settings_ = 89 network_settings_ =
90 NetworkSettings(NetworkSettings::NAT_TRAVERSAL_OUTGOING); 90 NetworkSettings(NetworkSettings::NAT_TRAVERSAL_OUTGOING);
91 } 91 }
92 92
93 void TearDown() override { 93 void TearDown() override {
94 client_message_pipe_.reset(); 94 client_message_pipe_.reset();
95 host_message_pipe_.reset(); 95 host_message_pipe_.reset();
96 client_transport_.reset(); 96 client_transport_.reset();
97 host_transport_.reset(); 97 host_transport_.reset();
98 message_loop_.RunUntilIdle(); 98 base::RunLoop().RunUntilIdle();
99 } 99 }
100 100
101 void ProcessTransportInfo(std::unique_ptr<IceTransport>* target_transport, 101 void ProcessTransportInfo(std::unique_ptr<IceTransport>* target_transport,
102 std::unique_ptr<buzz::XmlElement> transport_info) { 102 std::unique_ptr<buzz::XmlElement> transport_info) {
103 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( 103 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
104 FROM_HERE, base::Bind(&IceTransportTest::DeliverTransportInfo, 104 FROM_HERE, base::Bind(&IceTransportTest::DeliverTransportInfo,
105 base::Unretained(this), target_transport, 105 base::Unretained(this), target_transport,
106 base::Passed(&transport_info)), 106 base::Passed(&transport_info)),
107 transport_info_delay_); 107 transport_info_delay_);
108 } 108 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 MessagePipeConnectionTester tester(host_message_pipe_.get(), 338 MessagePipeConnectionTester tester(host_message_pipe_.get(),
339 client_message_pipe_.get(), kMessageSize, 339 client_message_pipe_.get(), kMessageSize,
340 kMessages); 340 kMessages);
341 tester.RunAndCheckResults(); 341 tester.RunAndCheckResults();
342 } 342 }
343 343
344 344
345 } // namespace protocol 345 } // namespace protocol
346 } // namespace remoting 346 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/worker_process_launcher_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698