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

Unified Diff: remoting/host/setup/native_messaging_host_unittest.cc

Issue 21128006: Refactored PairingRegistry::Delegate such that it can retrieve/modify for a single client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 5 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/remoting_me2me_host.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/native_messaging_host_unittest.cc
diff --git a/remoting/host/setup/native_messaging_host_unittest.cc b/remoting/host/setup/native_messaging_host_unittest.cc
index 1003b5edf8c0ddf5672c3f01b5cc46188f824483..09cf26ed63db75a6d920788a0a70c618f2b3f57e 100644
--- a/remoting/host/setup/native_messaging_host_unittest.cc
+++ b/remoting/host/setup/native_messaging_host_unittest.cc
@@ -20,8 +20,9 @@
#include "remoting/protocol/protocol_mock_objects.h"
#include "testing/gtest/include/gtest/gtest.h"
-using remoting::protocol::PairingRegistry;
using remoting::protocol::MockPairingRegistryDelegate;
+using remoting::protocol::PairingRegistry;
+using remoting::protocol::SynchronousPairingRegistry;
namespace {
@@ -266,8 +267,9 @@ void NativeMessagingHostTest::SetUp() {
daemon_controller_ = new MockDaemonController();
scoped_ptr<DaemonController> daemon_controller(daemon_controller_);
- scoped_refptr<PairingRegistry> pairing_registry = new PairingRegistry(
- scoped_ptr<PairingRegistry::Delegate>(new MockPairingRegistryDelegate));
+ scoped_refptr<PairingRegistry> pairing_registry =
+ new SynchronousPairingRegistry(scoped_ptr<PairingRegistry::Delegate>(
+ new MockPairingRegistryDelegate()));
host_.reset(new NativeMessagingHost(daemon_controller.Pass(),
pairing_registry,
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698