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

Unified Diff: remoting/protocol/protocol_mock_objects.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/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index a39d619b3ff3915e5d3fbf886d6d9e622645985f..391eb4dcc023a22387d6b1b483b5cf1112e954fd 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -30,6 +30,7 @@
#include "remoting/protocol/session_manager.h"
#include "remoting/protocol/transport.h"
#include "remoting/protocol/video_stub.h"
+#include "remoting/signaling/signaling_address.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
@@ -206,15 +207,15 @@ class MockSessionManager : public SessionManager {
void set_protocol_config(
std::unique_ptr<CandidateSessionConfig> config) override {}
MOCK_METHOD2(ConnectPtr,
- Session*(const std::string& host_jid,
+ Session*(const SignalingAddress& peer_address,
Authenticator* authenticator));
MOCK_METHOD0(Close, void());
MOCK_METHOD1(set_authenticator_factory_ptr,
void(AuthenticatorFactory* factory));
std::unique_ptr<Session> Connect(
- const std::string& host_jid,
+ const SignalingAddress& peer_address,
std::unique_ptr<Authenticator> authenticator) override {
- return base::WrapUnique(ConnectPtr(host_jid, authenticator.get()));
+ return base::WrapUnique(ConnectPtr(peer_address, authenticator.get()));
}
void set_authenticator_factory(
std::unique_ptr<AuthenticatorFactory> authenticator_factory) override {
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698