| 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 "components/gcm_driver/crypto/p256_key_util.h" | 5 #include "components/gcm_driver/crypto/p256_key_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 | 10 |
| 9 #include "base/base64.h" | 11 #include "base/base64.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 13 |
| 12 namespace gcm { | 14 namespace gcm { |
| 13 | 15 |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 // A P-256 point in uncompressed form consists of 0x04 (to denote that the point | 18 // A P-256 point in uncompressed form consists of 0x04 (to denote that the point |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 std::string bob_carol_shared_secret; | 148 std::string bob_carol_shared_secret; |
| 147 ASSERT_TRUE(base::Base64Decode( | 149 ASSERT_TRUE(base::Base64Decode( |
| 148 kBobCarolSharedSecret, &bob_carol_shared_secret)); | 150 kBobCarolSharedSecret, &bob_carol_shared_secret)); |
| 149 | 151 |
| 150 EXPECT_EQ(carol_shared_secret, bob_carol_shared_secret); | 152 EXPECT_EQ(carol_shared_secret, bob_carol_shared_secret); |
| 151 } | 153 } |
| 152 | 154 |
| 153 } // namespace | 155 } // namespace |
| 154 | 156 |
| 155 } // namespace gcm | 157 } // namespace gcm |
| OLD | NEW |