summaryrefslogtreecommitdiffstats
path: root/remoting/host/heartbeat_sender_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/heartbeat_sender_unittest.cc')
-rw-r--r--remoting/host/heartbeat_sender_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/host/heartbeat_sender_unittest.cc b/remoting/host/heartbeat_sender_unittest.cc
index 4c3390a..b1de98b 100644
--- a/remoting/host/heartbeat_sender_unittest.cc
+++ b/remoting/host/heartbeat_sender_unittest.cc
@@ -64,12 +64,14 @@ TEST_F(HeartbeatSenderTest, DoSendStanza) {
ASSERT_TRUE(heartbeat_sender->Init());
XmlElement* sent_iq = NULL;
+ EXPECT_CALL(signal_strategy_, GetLocalJid())
+ .WillRepeatedly(Return(kTestJid));
EXPECT_CALL(signal_strategy_, GetNextId())
.WillOnce(Return(kStanzaId));
EXPECT_CALL(signal_strategy_, SendStanza(NotNull()))
.WillOnce(DoAll(SaveArg<0>(&sent_iq), Return(true)));
- heartbeat_sender->OnSignallingConnected(&signal_strategy_, kTestJid);
+ heartbeat_sender->OnSignallingConnected(&signal_strategy_);
message_loop_.RunAllPending();
scoped_ptr<XmlElement> stanza(sent_iq);