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/test/test_chromoting_client.h" | 5 #include "remoting/test/test_chromoting_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 protocol::NetworkSettings network_settings( | 185 protocol::NetworkSettings network_settings( |
186 protocol::NetworkSettings::NAT_TRAVERSAL_FULL); | 186 protocol::NetworkSettings::NAT_TRAVERSAL_FULL); |
187 | 187 |
188 scoped_ptr<protocol::ChromiumPortAllocator> port_allocator( | 188 scoped_ptr<protocol::ChromiumPortAllocator> port_allocator( |
189 protocol::ChromiumPortAllocator::Create(request_context_getter, | 189 protocol::ChromiumPortAllocator::Create(request_context_getter, |
190 network_settings)); | 190 network_settings)); |
191 | 191 |
192 scoped_ptr<protocol::TransportFactory> transport_factory( | 192 scoped_ptr<protocol::TransportFactory> transport_factory( |
193 new protocol::LibjingleTransportFactory( | 193 new protocol::LibjingleTransportFactory( |
194 signal_strategy_.get(), port_allocator.Pass(), network_settings, | 194 signal_strategy_.get(), port_allocator.Pass(), network_settings)); |
195 protocol::TransportRole::CLIENT)); | |
196 | 195 |
197 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> | 196 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> |
198 token_fetcher(new TokenFetcherProxy( | 197 token_fetcher(new TokenFetcherProxy( |
199 base::Bind(&FetchThirdPartyToken, remote_host_info.authorization_code, | 198 base::Bind(&FetchThirdPartyToken, remote_host_info.authorization_code, |
200 remote_host_info.shared_secret), | 199 remote_host_info.shared_secret), |
201 "FAKE_HOST_PUBLIC_KEY")); | 200 "FAKE_HOST_PUBLIC_KEY")); |
202 | 201 |
203 std::vector<protocol::AuthenticationMethod> auth_methods; | 202 std::vector<protocol::AuthenticationMethod> auth_methods; |
204 auth_methods.push_back(protocol::AuthenticationMethod::ThirdParty()); | 203 auth_methods.push_back(protocol::AuthenticationMethod::ThirdParty()); |
205 | 204 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 DVLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; | 332 DVLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; |
334 } | 333 } |
335 | 334 |
336 void TestChromotingClient::SetCursorShape( | 335 void TestChromotingClient::SetCursorShape( |
337 const protocol::CursorShapeInfo& cursor_shape) { | 336 const protocol::CursorShapeInfo& cursor_shape) { |
338 DVLOG(1) << "TestChromotingClient::SetCursorShape() Called"; | 337 DVLOG(1) << "TestChromotingClient::SetCursorShape() Called"; |
339 } | 338 } |
340 | 339 |
341 } // namespace test | 340 } // namespace test |
342 } // namespace remoting | 341 } // namespace remoting |
OLD | NEW |