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

Unified Diff: remoting/signaling/mock_signal_strategy.h

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/signaling/log_to_server_unittest.cc ('k') | remoting/signaling/mock_signal_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/mock_signal_strategy.h
diff --git a/remoting/signaling/mock_signal_strategy.h b/remoting/signaling/mock_signal_strategy.h
index e4455f4efd6b877544d71ad67ebaab53af0a9caf..5fd40f83f8c8e33745557c1400d476911128a01f 100644
--- a/remoting/signaling/mock_signal_strategy.h
+++ b/remoting/signaling/mock_signal_strategy.h
@@ -6,6 +6,7 @@
#include "remoting/signaling/iq_sender.h"
#include "remoting/signaling/signal_strategy.h"
+#include "remoting/signaling/signaling_address.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
@@ -13,14 +14,13 @@ namespace remoting {
class MockSignalStrategy : public SignalStrategy {
public:
- MockSignalStrategy();
+ MockSignalStrategy(const SignalingAddress& address);
~MockSignalStrategy() override;
MOCK_METHOD0(Connect, void());
MOCK_METHOD0(Disconnect, void());
MOCK_CONST_METHOD0(GetState, State());
MOCK_CONST_METHOD0(GetError, Error());
- MOCK_CONST_METHOD0(GetLocalJid, std::string());
MOCK_METHOD1(AddListener, void(Listener* listener));
MOCK_METHOD1(RemoveListener, void(Listener* listener));
MOCK_METHOD0(GetNextId, std::string());
@@ -31,6 +31,11 @@ class MockSignalStrategy : public SignalStrategy {
bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override {
return SendStanzaPtr(stanza.release());
}
+
+ const SignalingAddress& GetLocalAddress() const override;
+
+ private:
+ SignalingAddress local_address_;
};
} // namespace remoting
« no previous file with comments | « remoting/signaling/log_to_server_unittest.cc ('k') | remoting/signaling/mock_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698