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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: remoting/test/test_chromoting_client.cc
diff --git a/remoting/test/test_chromoting_client.cc b/remoting/test/test_chromoting_client.cc
index d838ba3a7986d363609e23777dedede28d182e5f..eef9bb355e439e61015a1d3b50a2a3335f46228d 100644
--- a/remoting/test/test_chromoting_client.cc
+++ b/remoting/test/test_chromoting_client.cc
@@ -133,12 +133,12 @@ namespace test {
TestChromotingClient::TestChromotingClient()
: connection_to_host_state_(protocol::ConnectionToHost::INITIALIZING),
- connection_error_code_(protocol::OK) {
-}
+ connection_error_code_(protocol::OK),
+ weak_factory_(this) {}
TestChromotingClient::TestChromotingClient(
scoped_ptr<VideoRenderer> video_renderer)
- : video_renderer_(video_renderer.Pass()) {
+ : video_renderer_(video_renderer.Pass()), weak_factory_(this) {
TestChromotingClient();
}
« 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