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

Side by Side Diff: components/cryptauth/remote_device_test_util.cc

Issue 2576283002: [Chrome OS Tether] Create BleAdvertisementDeviceQueue. (Closed)
Patch Set: Created 4 years 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/cryptauth/remote_device_test_util.h"
6
7 #include "base/base64.h"
8
9 namespace cryptauth {
10
11 std::vector<RemoteDevice> GenerateTestRemoteDevices(size_t num_to_create) {
12 std::vector<RemoteDevice> generated_devices;
13
14 for (size_t i = 0; i < num_to_create; i++) {
15 RemoteDevice device;
16 device.public_key = "publicKey" + std::to_string(i);
17 generated_devices.push_back(device);
18 }
19
20 return generated_devices;
21 }
22
23 } // namespace cryptauth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698