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

Unified Diff: remoting/protocol/negotiating_authenticator_unittest.cc

Issue 17063003: Changes to PairingRegistry to facilitate per-platform implementions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed spacing. 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
Index: remoting/protocol/negotiating_authenticator_unittest.cc
diff --git a/remoting/protocol/negotiating_authenticator_unittest.cc b/remoting/protocol/negotiating_authenticator_unittest.cc
index 8a18f2dedbfb5cbcfe41218ebe7e9b9b86b64492..fb7ed3445871fa1f215acf9810aaf3c54c4c905a 100644
--- a/remoting/protocol/negotiating_authenticator_unittest.cc
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc
@@ -31,6 +31,7 @@ const int kMessages = 1;
const char kNoClientId[] = "";
const char kNoPairedSecret[] = "";
+const char kTestClientName[] = "client-name";
const char kTestClientId[] = "client-id";
const char kTestHostId[] = "12345678910123456";
@@ -85,10 +86,10 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
void CreatePairingRegistry(bool with_paired_client) {
mock_delegate_ = new MockPairingRegistryDelegate;
if (with_paired_client) {
- PairingRegistry::Pairing pairing;
- pairing.client_id = kTestClientId;
- pairing.shared_secret = kTestPairedSecret;
- mock_delegate_->AddPairing(pairing);
+ PairingRegistry::Pairing pairing(
+ base::Time(), kTestClientName, kTestClientId, kTestPairedSecret);
+ mock_delegate_->AddPairing(pairing,
+ PairingRegistry::AddPairingCallback());
}
pairing_registry_ = new PairingRegistry(
scoped_ptr<PairingRegistry::Delegate>(mock_delegate_));

Powered by Google App Engine
This is Rietveld 408576698