| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/base64url.h" | 5 #include "base/base64url.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/macros.h" |
| 7 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | 8 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
| 8 #include "components/proximity_auth/device_to_device_initiator_operations.h" | 9 #include "components/proximity_auth/device_to_device_initiator_operations.h" |
| 9 #include "components/proximity_auth/device_to_device_responder_operations.h" | 10 #include "components/proximity_auth/device_to_device_responder_operations.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace proximity_auth { | 13 namespace proximity_auth { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 // The initiator's session public key in base64url form. Note that this is | 17 // The initiator's session public key in base64url form. Note that this is |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 DeviceToDeviceResponderOperations::ValidateInitiatorAuthMessage( | 260 DeviceToDeviceResponderOperations::ValidateInitiatorAuthMessage( |
| 260 local_auth_message, session_symmetric_key_, | 261 local_auth_message, session_symmetric_key_, |
| 261 "invalid persistent symmetric key", remote_auth_message, | 262 "invalid persistent symmetric key", remote_auth_message, |
| 262 &secure_message_delegate_, | 263 &secure_message_delegate_, |
| 263 base::Bind(&SaveValidationResult, &validation_success)); | 264 base::Bind(&SaveValidationResult, &validation_success)); |
| 264 | 265 |
| 265 EXPECT_FALSE(validation_success); | 266 EXPECT_FALSE(validation_success); |
| 266 } | 267 } |
| 267 | 268 |
| 268 } // namespace proximity_auth | 269 } // namespace proximity_auth |
| OLD | NEW |