Index: components/cryptauth/fake_secure_message_delegate_unittest.cc |
diff --git a/components/proximity_auth/cryptauth/fake_secure_message_delegate_unittest.cc b/components/cryptauth/fake_secure_message_delegate_unittest.cc |
similarity index 92% |
rename from components/proximity_auth/cryptauth/fake_secure_message_delegate_unittest.cc |
rename to components/cryptauth/fake_secure_message_delegate_unittest.cc |
index cde8b655ef3b2a04a10f46a63f5cb603da39aac6..ba46991b716ff2dc8735ed1389f50ed17c7e5103 100644 |
--- a/components/proximity_auth/cryptauth/fake_secure_message_delegate_unittest.cc |
+++ b/components/cryptauth/fake_secure_message_delegate_unittest.cc |
@@ -2,13 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
+#include "components/cryptauth/fake_secure_message_delegate.h" |
#include "base/bind.h" |
#include "base/macros.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-namespace proximity_auth { |
+namespace cryptauth { |
namespace { |
@@ -89,16 +89,16 @@ void CheckSerializedSecureMessage( |
} // namespace |
-class ProximityAuthFakeSecureMessageDelegateTest : public testing::Test { |
+class CryptAuthFakeSecureMessageDelegateTest : public testing::Test { |
protected: |
- ProximityAuthFakeSecureMessageDelegateTest() {} |
+ CryptAuthFakeSecureMessageDelegateTest() {} |
FakeSecureMessageDelegate delegate_; |
- DISALLOW_COPY_AND_ASSIGN(ProximityAuthFakeSecureMessageDelegateTest); |
+ DISALLOW_COPY_AND_ASSIGN(CryptAuthFakeSecureMessageDelegateTest); |
}; |
-TEST_F(ProximityAuthFakeSecureMessageDelegateTest, GenerateKeyPair) { |
+TEST_F(CryptAuthFakeSecureMessageDelegateTest, GenerateKeyPair) { |
std::string public_key1, private_key1; |
delegate_.GenerateKeyPair( |
base::Bind(&SaveKeyPair, &public_key1, &private_key1)); |
@@ -123,7 +123,7 @@ TEST_F(ProximityAuthFakeSecureMessageDelegateTest, GenerateKeyPair) { |
EXPECT_NE(private_key1, private_key3); |
} |
-TEST_F(ProximityAuthFakeSecureMessageDelegateTest, DeriveKey) { |
+TEST_F(CryptAuthFakeSecureMessageDelegateTest, DeriveKey) { |
delegate_.set_next_public_key("key_pair_1"); |
std::string public_key1, private_key1; |
delegate_.GenerateKeyPair( |
@@ -143,7 +143,7 @@ TEST_F(ProximityAuthFakeSecureMessageDelegateTest, DeriveKey) { |
EXPECT_EQ(symmetric_key1, symmetric_key2); |
} |
-TEST_F(ProximityAuthFakeSecureMessageDelegateTest, |
+TEST_F(CryptAuthFakeSecureMessageDelegateTest, |
CreateAndUnwrapWithSymmetricKey) { |
// Create SecureMessage using symmetric key. |
SecureMessageDelegate::CreateOptions create_options = |
@@ -166,7 +166,7 @@ TEST_F(ProximityAuthFakeSecureMessageDelegateTest, |
EXPECT_EQ(kPayload, payload); |
} |
-TEST_F(ProximityAuthFakeSecureMessageDelegateTest, |
+TEST_F(CryptAuthFakeSecureMessageDelegateTest, |
CreateAndUnwrapWithAsymmetricKey) { |
delegate_.set_next_public_key(kTestPublicKey); |
std::string public_key, private_key; |
@@ -194,7 +194,7 @@ TEST_F(ProximityAuthFakeSecureMessageDelegateTest, |
EXPECT_EQ(kPayload, payload); |
} |
-TEST_F(ProximityAuthFakeSecureMessageDelegateTest, GetPrivateKeyForPublicKey) { |
+TEST_F(CryptAuthFakeSecureMessageDelegateTest, GetPrivateKeyForPublicKey) { |
delegate_.set_next_public_key(kTestPublicKey); |
std::string public_key, private_key; |
delegate_.GenerateKeyPair( |