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

Unified Diff: components/cryptauth/device_to_device_authenticator_unittest.cc

Issue 2899863002: Updating D2D protocol to v1 to support separate sequence numbers. (Closed)
Patch Set: Fixing tests Created 3 years, 7 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: components/cryptauth/device_to_device_authenticator_unittest.cc
diff --git a/components/cryptauth/device_to_device_authenticator_unittest.cc b/components/cryptauth/device_to_device_authenticator_unittest.cc
index 507bedb1b9b04a6837b2da63fa53f950bef3032a..245bf503edfcb7f150881b2b9c309ba3cd9b5192 100644
--- a/components/cryptauth/device_to_device_authenticator_unittest.cc
+++ b/components/cryptauth/device_to_device_authenticator_unittest.cc
@@ -19,6 +19,7 @@
#include "components/cryptauth/device_to_device_responder_operations.h"
#include "components/cryptauth/fake_secure_message_delegate.h"
#include "components/cryptauth/secure_context.h"
+#include "components/cryptauth/session_keys.h"
#include "components/cryptauth/wire_message.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -268,8 +269,9 @@ TEST_F(ProximityAuthDeviceToDeviceAuthenticatorTest, AuthenticateSucceeds) {
std::string initiator_auth = connection_.message_buffer()[0]->payload();
bool initiator_auth_validated = false;
+ auto session_keys = base::MakeUnique<SessionKeys>(session_symmetric_key_);
DeviceToDeviceResponderOperations::ValidateInitiatorAuthMessage(
- initiator_auth, session_symmetric_key_,
+ initiator_auth, session_keys.get(),
remote_device_.persistent_symmetric_key, responder_auth_message,
secure_message_delegate_,
base::Bind(&SaveBooleanResult, &initiator_auth_validated));

Powered by Google App Engine
This is Rietveld 408576698