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

Side by Side Diff: components/proximity_auth/ble/bluetooth_low_energy_device_whitelist_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/ble/bluetooth_low_energy_device_whitelist.h" 5 #include "components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/prefs/testing_pref_service.h" 13 #include "base/prefs/testing_pref_service.h"
13 #include "components/proximity_auth/ble/pref_names.h" 14 #include "components/proximity_auth/ble/pref_names.h"
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 17
17 namespace proximity_auth { 18 namespace proximity_auth {
18 namespace { 19 namespace {
19 20
20 const char kBluetoothAddress1[] = "11:22:33:44:55:66"; 21 const char kBluetoothAddress1[] = "11:22:33:44:55:66";
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Note: it's not guarantee that the order in |public_key| is the same as 155 // Note: it's not guarantee that the order in |public_key| is the same as
155 // insertion, so directly comparing vectors would not work. 156 // insertion, so directly comparing vectors would not work.
156 EXPECT_TRUE(public_keys.size() == 2); 157 EXPECT_TRUE(public_keys.size() == 2);
157 EXPECT_TRUE(std::find(public_keys.begin(), public_keys.end(), kPublicKey1) != 158 EXPECT_TRUE(std::find(public_keys.begin(), public_keys.end(), kPublicKey1) !=
158 public_keys.end()); 159 public_keys.end());
159 EXPECT_TRUE(std::find(public_keys.begin(), public_keys.end(), kPublicKey2) != 160 EXPECT_TRUE(std::find(public_keys.begin(), public_keys.end(), kPublicKey2) !=
160 public_keys.end()); 161 public_keys.end());
161 } 162 }
162 163
163 } // namespace proximity_auth 164 } // namespace proximity_auth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698