| 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/proximity_auth/remote_device_loader.h" | 5 #include "components/proximity_auth/remote_device_loader.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | 12 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
| 10 #include "components/proximity_auth/proximity_auth_pref_manager.h" | 13 #include "components/proximity_auth/proximity_auth_pref_manager.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 16 |
| 14 namespace proximity_auth { | 17 namespace proximity_auth { |
| 15 namespace { | 18 namespace { |
| 16 | 19 |
| 17 // Prefixes for RemoteDevice fields. | 20 // Prefixes for RemoteDevice fields. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 for (size_t i = 0; i < 3; ++i) { | 165 for (size_t i = 0; i < 3; ++i) { |
| 163 EXPECT_FALSE(remote_devices_[i].persistent_symmetric_key.empty()); | 166 EXPECT_FALSE(remote_devices_[i].persistent_symmetric_key.empty()); |
| 164 EXPECT_EQ(unlock_keys[i].friendly_device_name(), remote_devices_[i].name); | 167 EXPECT_EQ(unlock_keys[i].friendly_device_name(), remote_devices_[i].name); |
| 165 EXPECT_EQ(unlock_keys[i].public_key(), remote_devices_[i].public_key); | 168 EXPECT_EQ(unlock_keys[i].public_key(), remote_devices_[i].public_key); |
| 166 EXPECT_EQ(unlock_keys[i].bluetooth_address(), | 169 EXPECT_EQ(unlock_keys[i].bluetooth_address(), |
| 167 remote_devices_[i].bluetooth_address); | 170 remote_devices_[i].bluetooth_address); |
| 168 } | 171 } |
| 169 } | 172 } |
| 170 | 173 |
| 171 } // namespace proximity_auth | 174 } // namespace proximity_auth |
| OLD | NEW |