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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 17063003: Changes to PairingRegistry to facilitate per-platform implementions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback. Created 7 years, 6 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/pairing_registry_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 7262ae595af689334b51f4d4fd8768184e9ff4db..0f1e24d85ce1d9faa2f202df68e689730864eaa0 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -187,18 +187,19 @@ class MockSessionManager : public SessionManager {
Authenticator* authenticator,
CandidateSessionConfig* config));
MOCK_METHOD0(Close, void());
- MOCK_METHOD1(set_authenticator_factory_ptr, void(AuthenticatorFactory*));
+ MOCK_METHOD1(set_authenticator_factory_ptr,
+ void(AuthenticatorFactory* factory));
virtual scoped_ptr<Session> Connect(
const std::string& host_jid,
scoped_ptr<Authenticator> authenticator,
scoped_ptr<CandidateSessionConfig> config) {
return scoped_ptr<Session>(ConnectPtr(
host_jid, authenticator.get(), config.get()));
- };
+ }
virtual void set_authenticator_factory(
scoped_ptr<AuthenticatorFactory> authenticator_factory) {
set_authenticator_factory_ptr(authenticator_factory.release());
- };
+ }
private:
DISALLOW_COPY_AND_ASSIGN(MockSessionManager);
@@ -216,7 +217,8 @@ class MockPairingRegistryDelegate : public PairingRegistry::Delegate {
// PairingRegistry::Delegate implementation.
virtual void AddPairing(
- const PairingRegistry::Pairing& new_paired_client) OVERRIDE;
+ const PairingRegistry::Pairing& new_paired_client,
+ const PairingRegistry::AddPairingCallback& callback) OVERRIDE;
virtual void GetPairing(
const std::string& client_id,
const PairingRegistry::GetPairingCallback& callback) OVERRIDE;
« no previous file with comments | « remoting/protocol/pairing_registry_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698