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

Side by Side Diff: components/proximity_auth/remote_device_loader_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/proximity_auth/remote_device_life_cycle_impl_unittest.cc ('k') | components/proximity_auth/screenlock_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698