| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |