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

Unified Diff: remoting/host/heartbeat_sender_unittest.cc

Issue 10106013: Chromoting: stopping the service if the host ID is permanently not recognized by the could. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback. Rebased. Created 8 years, 8 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
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender_unittest.cc
diff --git a/remoting/host/heartbeat_sender_unittest.cc b/remoting/host/heartbeat_sender_unittest.cc
index f94726d3dc5b4db994be379ab4752ac2f8b29c62..63b4499298c8e884da7d426ef43dc1438448768e 100644
--- a/remoting/host/heartbeat_sender_unittest.cc
+++ b/remoting/host/heartbeat_sender_unittest.cc
@@ -47,8 +47,15 @@ ACTION_P(RemoveListener, list) {
list->erase(arg0);
}
-class HeartbeatSenderTest : public testing::Test {
+class HeartbeatSenderTest
+ : public testing::Test,
+ public HeartbeatSender::Listener {
protected:
+ // Overridden from HeartbeatSender::Listener
+ virtual void OnUnknownHostIdError() OVERRIDE {
+ NOTREACHED();
+ }
+
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(key_pair_.LoadFromString(kTestHostKeyPair));
@@ -62,7 +69,7 @@ class HeartbeatSenderTest : public testing::Test {
.WillRepeatedly(Return(kTestJid));
heartbeat_sender_.reset(
- new HeartbeatSender(kHostId, &signal_strategy_, &key_pair_));
+ new HeartbeatSender(this, kHostId, &signal_strategy_, &key_pair_));
}
virtual void TearDown() OVERRIDE {
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698