Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: remoting/test/test_chromoting_client.cc

Issue 1413813006: Revert of Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/test/protocol_perftest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
12 #include "jingle/glue/thread_wrapper.h" 12 #include "jingle/glue/thread_wrapper.h"
13 #include "net/base/request_priority.h" 13 #include "net/base/request_priority.h"
14 #include "net/socket/client_socket_factory.h" 14 #include "net/socket/client_socket_factory.h"
15 #include "remoting/base/url_request_context_getter.h" 15 #include "remoting/base/url_request_context_getter.h"
16 #include "remoting/client/audio_player.h" 16 #include "remoting/client/audio_player.h"
17 #include "remoting/client/chromoting_client.h" 17 #include "remoting/client/chromoting_client.h"
18 #include "remoting/client/client_context.h" 18 #include "remoting/client/client_context.h"
19 #include "remoting/client/token_fetcher_proxy.h" 19 #include "remoting/client/token_fetcher_proxy.h"
20 #include "remoting/protocol/chromium_port_allocator.h" 20 #include "remoting/protocol/chromium_port_allocator.h"
21 #include "remoting/protocol/host_stub.h" 21 #include "remoting/protocol/host_stub.h"
22 #include "remoting/protocol/ice_transport_factory.h" 22 #include "remoting/protocol/libjingle_transport_factory.h"
23 #include "remoting/protocol/negotiating_client_authenticator.h" 23 #include "remoting/protocol/negotiating_client_authenticator.h"
24 #include "remoting/protocol/network_settings.h" 24 #include "remoting/protocol/network_settings.h"
25 #include "remoting/protocol/session_config.h" 25 #include "remoting/protocol/session_config.h"
26 #include "remoting/protocol/third_party_client_authenticator.h" 26 #include "remoting/protocol/third_party_client_authenticator.h"
27 #include "remoting/signaling/xmpp_signal_strategy.h" 27 #include "remoting/signaling/xmpp_signal_strategy.h"
28 #include "remoting/test/connection_setup_info.h" 28 #include "remoting/test/connection_setup_info.h"
29 #include "remoting/test/test_video_renderer.h" 29 #include "remoting/test/test_video_renderer.h"
30 30
31 namespace { 31 namespace {
32 const char kXmppHostName[] = "talk.google.com"; 32 const char kXmppHostName[] = "talk.google.com";
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 request_context_getter, xmpp_server_config)); 120 request_context_getter, xmpp_server_config));
121 121
122 protocol::NetworkSettings network_settings( 122 protocol::NetworkSettings network_settings(
123 protocol::NetworkSettings::NAT_TRAVERSAL_FULL); 123 protocol::NetworkSettings::NAT_TRAVERSAL_FULL);
124 124
125 scoped_ptr<protocol::ChromiumPortAllocator> port_allocator( 125 scoped_ptr<protocol::ChromiumPortAllocator> port_allocator(
126 protocol::ChromiumPortAllocator::Create(request_context_getter, 126 protocol::ChromiumPortAllocator::Create(request_context_getter,
127 network_settings)); 127 network_settings));
128 128
129 scoped_ptr<protocol::TransportFactory> transport_factory( 129 scoped_ptr<protocol::TransportFactory> transport_factory(
130 new protocol::IceTransportFactory( 130 new protocol::LibjingleTransportFactory(
131 signal_strategy_.get(), port_allocator.Pass(), network_settings, 131 signal_strategy_.get(), port_allocator.Pass(), network_settings,
132 protocol::TransportRole::CLIENT)); 132 protocol::TransportRole::CLIENT));
133 133
134 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> 134 scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher>
135 token_fetcher(new TokenFetcherProxy( 135 token_fetcher(new TokenFetcherProxy(
136 base::Bind(&FetchThirdPartyToken, 136 base::Bind(&FetchThirdPartyToken,
137 connection_setup_info.authorization_code, 137 connection_setup_info.authorization_code,
138 connection_setup_info.shared_secret), 138 connection_setup_info.shared_secret),
139 connection_setup_info.public_key)); 139 connection_setup_info.public_key));
140 140
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; 272 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called";
273 } 273 }
274 274
275 void TestChromotingClient::SetCursorShape( 275 void TestChromotingClient::SetCursorShape(
276 const protocol::CursorShapeInfo& cursor_shape) { 276 const protocol::CursorShapeInfo& cursor_shape) {
277 VLOG(1) << "TestChromotingClient::SetCursorShape() Called"; 277 VLOG(1) << "TestChromotingClient::SetCursorShape() Called";
278 } 278 }
279 279
280 } // namespace test 280 } // namespace test
281 } // namespace remoting 281 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/test/protocol_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698