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

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

Issue 1253613002: Updated latency fixture and refactored connection helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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
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"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 } 127 }
128 128
129 } // namespace 129 } // namespace
130 130
131 namespace remoting { 131 namespace remoting {
132 namespace test { 132 namespace test {
133 133
134 TestChromotingClient::TestChromotingClient() 134 TestChromotingClient::TestChromotingClient()
135 : connection_to_host_state_(protocol::ConnectionToHost::INITIALIZING), 135 : connection_to_host_state_(protocol::ConnectionToHost::INITIALIZING),
136 connection_error_code_(protocol::OK) { 136 connection_error_code_(protocol::OK),
137 } 137 weak_factory_(this) {}
138 138
139 TestChromotingClient::TestChromotingClient( 139 TestChromotingClient::TestChromotingClient(
140 scoped_ptr<VideoRenderer> video_renderer) 140 scoped_ptr<VideoRenderer> video_renderer)
141 : video_renderer_(video_renderer.Pass()) { 141 : video_renderer_(video_renderer.Pass()), weak_factory_(this) {
142 TestChromotingClient(); 142 TestChromotingClient();
143 } 143 }
144 144
145 TestChromotingClient::~TestChromotingClient() { 145 TestChromotingClient::~TestChromotingClient() {
146 // Ensure any connections are closed and the members are destroyed in the 146 // Ensure any connections are closed and the members are destroyed in the
147 // appropriate order. 147 // appropriate order.
148 EndConnection(); 148 EndConnection();
149 } 149 }
150 150
151 void TestChromotingClient::StartConnection( 151 void TestChromotingClient::StartConnection(
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; 340 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called";
341 } 341 }
342 342
343 void TestChromotingClient::SetCursorShape( 343 void TestChromotingClient::SetCursorShape(
344 const protocol::CursorShapeInfo& cursor_shape) { 344 const protocol::CursorShapeInfo& cursor_shape) {
345 VLOG(1) << "TestChromotingClient::SetCursorShape() Called"; 345 VLOG(1) << "TestChromotingClient::SetCursorShape() Called";
346 } 346 }
347 347
348 } // namespace test 348 } // namespace test
349 } // namespace remoting 349 } // namespace remoting
OLDNEW
« remoting/test/test_chromoting_client.h ('K') | « remoting/test/test_chromoting_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698