| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test/it2me_standalone_host.h" | 5 #include "remoting/test/it2me_standalone_host.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 void It2MeStandaloneHost::StartOutputTimer() { | 79 void It2MeStandaloneHost::StartOutputTimer() { |
| 80 timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(1), | 80 timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(1), |
| 81 base::Bind(&OutputFakeConnectionEventLogger, | 81 base::Bind(&OutputFakeConnectionEventLogger, |
| 82 base::ConstRef(event_logger_))); | 82 base::ConstRef(event_logger_))); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void It2MeStandaloneHost::Connect() { | 85 void It2MeStandaloneHost::Connect() { |
| 86 session_.reset(new ClientSession( | 86 session_.reset(new ClientSession( |
| 87 *context_, |
| 87 &handler_, | 88 &handler_, |
| 88 context_->audio_task_runner(), | |
| 89 std::unique_ptr<protocol::ConnectionToClient>(&connection_), | 89 std::unique_ptr<protocol::ConnectionToClient>(&connection_), |
| 90 &factory_, | 90 &factory_, |
| 91 base::TimeDelta(), | 91 base::TimeDelta(), |
| 92 scoped_refptr<protocol::PairingRegistry>(), | 92 scoped_refptr<protocol::PairingRegistry>(), |
| 93 std::vector<HostExtension*>())); | 93 std::vector<HostExtension*>())); |
| 94 session_->OnConnectionAuthenticated(&connection_); | 94 session_->OnConnectionAuthenticated(&connection_); |
| 95 session_->OnConnectionChannelsConnected(&connection_); | 95 session_->OnConnectionChannelsConnected(&connection_); |
| 96 session_->CreateVideoStreams(&connection_); | 96 session_->CreateVideoStreams(&connection_); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace test | 99 } // namespace test |
| 100 } // namespace remoting | 100 } // namespace remoting |
| OLD | NEW |