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

Unified Diff: remoting/host/host_change_notification_listener_unittest.cc

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)
Patch Set: header Created 3 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/host_change_notification_listener.cc ('k') | remoting/host/host_status_logger_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_change_notification_listener_unittest.cc
diff --git a/remoting/host/host_change_notification_listener_unittest.cc b/remoting/host/host_change_notification_listener_unittest.cc
index 7bbf290baa35ffe7fef03ec7e9aa68a2e745fc79..aea4233f5677ed45d4f5afa62138ab2d44f7a6a8 100644
--- a/remoting/host/host_change_notification_listener_unittest.cc
+++ b/remoting/host/host_change_notification_listener_unittest.cc
@@ -14,6 +14,7 @@
#include "base/strings/string_number_conversions.h"
#include "remoting/base/constants.h"
#include "remoting/signaling/mock_signal_strategy.h"
+#include "remoting/signaling/signaling_address.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
@@ -45,6 +46,8 @@ ACTION_P(RemoveListener, list) {
class HostChangeNotificationListenerTest : public testing::Test {
protected:
+ HostChangeNotificationListenerTest()
+ : signal_strategy_(SignalingAddress(kTestJid)) {}
class MockListener : public HostChangeNotificationListener::Listener {
public:
MOCK_METHOD0(OnHostDeleted, void());
@@ -55,8 +58,6 @@ class HostChangeNotificationListenerTest : public testing::Test {
.WillRepeatedly(AddListener(&signal_strategy_listeners_));
EXPECT_CALL(signal_strategy_, RemoveListener(NotNull()))
.WillRepeatedly(RemoveListener(&signal_strategy_listeners_));
- EXPECT_CALL(signal_strategy_, GetLocalJid())
- .WillRepeatedly(Return(kTestJid));
host_change_notification_listener_.reset(new HostChangeNotificationListener(
&mock_listener_, kHostId, &signal_strategy_, kTestBotJid));
« no previous file with comments | « remoting/host/host_change_notification_listener.cc ('k') | remoting/host/host_status_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698