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

Side by Side Diff: remoting/host/host_status_logger_unittest.cc

Issue 660803004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/host/host_status_logger.h" 5 #include "remoting/host/host_status_logger.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "remoting/host/fake_host_status_monitor.h" 9 #include "remoting/host/fake_host_status_monitor.h"
10 #include "remoting/signaling/mock_signal_strategy.h" 10 #include "remoting/signaling/mock_signal_strategy.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return false; 118 return false;
119 } 119 }
120 return true; 120 return true;
121 } 121 }
122 122
123 } // namespace 123 } // namespace
124 124
125 class HostStatusLoggerTest : public testing::Test { 125 class HostStatusLoggerTest : public testing::Test {
126 public: 126 public:
127 HostStatusLoggerTest() {} 127 HostStatusLoggerTest() {}
128 virtual void SetUp() override { 128 void SetUp() override {
129 message_loop_proxy_ = base::MessageLoopProxy::current(); 129 message_loop_proxy_ = base::MessageLoopProxy::current();
130 EXPECT_CALL(signal_strategy_, AddListener(_)); 130 EXPECT_CALL(signal_strategy_, AddListener(_));
131 host_status_logger_.reset( 131 host_status_logger_.reset(
132 new HostStatusLogger(host_status_monitor_.AsWeakPtr(), 132 new HostStatusLogger(host_status_monitor_.AsWeakPtr(),
133 ServerLogEntry::ME2ME, 133 ServerLogEntry::ME2ME,
134 &signal_strategy_, 134 &signal_strategy_,
135 kTestBotJid)); 135 kTestBotJid));
136 EXPECT_CALL(signal_strategy_, RemoveListener(_)); 136 EXPECT_CALL(signal_strategy_, RemoveListener(_));
137 } 137 }
138 138
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 route2.type = protocol::TransportRoute::STUN; 249 route2.type = protocol::TransportRoute::STUN;
250 host_status_logger_->OnClientRouteChange(kClientJid2, "video", route2); 250 host_status_logger_->OnClientRouteChange(kClientJid2, "video", route2);
251 host_status_logger_->OnClientDisconnected(kClientJid1); 251 host_status_logger_->OnClientDisconnected(kClientJid1);
252 host_status_logger_->OnClientAuthenticated(kClientJid2); 252 host_status_logger_->OnClientAuthenticated(kClientJid2);
253 host_status_logger_->OnClientConnected(kClientJid2); 253 host_status_logger_->OnClientConnected(kClientJid2);
254 host_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED); 254 host_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED);
255 message_loop_.Run(); 255 message_loop_.Run();
256 } 256 }
257 257
258 } // namespace remoting 258 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_extension_session_manager_unittest.cc ('k') | remoting/host/host_status_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698