| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 base::ConstRef(event_logger_))); | 83 base::ConstRef(event_logger_))); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void It2MeStandaloneHost::Connect() { | 86 void It2MeStandaloneHost::Connect() { |
| 87 DesktopEnvironmentOptions options = | 87 DesktopEnvironmentOptions options = |
| 88 DesktopEnvironmentOptions::CreateDefault(); | 88 DesktopEnvironmentOptions::CreateDefault(); |
| 89 options.set_enable_user_interface(false); | 89 options.set_enable_user_interface(false); |
| 90 session_.reset(new ClientSession( | 90 session_.reset(new ClientSession( |
| 91 &handler_, std::unique_ptr<protocol::ConnectionToClient>(&connection_), | 91 &handler_, std::unique_ptr<protocol::ConnectionToClient>(&connection_), |
| 92 &factory_, options, base::TimeDelta(), | 92 &factory_, options, base::TimeDelta(), |
| 93 scoped_refptr<protocol::PairingRegistry>(), std::vector<HostExtension*>(), | 93 scoped_refptr<protocol::PairingRegistry>(), |
| 94 std::vector<protocol::DataChannelManager::NameCallbackPair>())); | 94 std::vector<HostExtension*>())); |
| 95 session_->OnConnectionAuthenticated(); | 95 session_->OnConnectionAuthenticated(); |
| 96 session_->OnConnectionChannelsConnected(); | 96 session_->OnConnectionChannelsConnected(); |
| 97 session_->CreateMediaStreams(); | 97 session_->CreateMediaStreams(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace test | 100 } // namespace test |
| 101 } // namespace remoting | 101 } // namespace remoting |
| OLD | NEW |