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