OLD | NEW |
(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 |
OLD | NEW |