| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ | 5 #ifndef COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ |
| 6 #define COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ | 6 #define COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 std::vector<std::string> GeneratePossibleAdvertisements( | 53 std::vector<std::string> GeneratePossibleAdvertisements( |
| 54 const std::string& advertising_device_public_key, | 54 const std::string& advertising_device_public_key, |
| 55 const std::vector<BeaconSeed>& scanning_device_beacon_seeds) | 55 const std::vector<BeaconSeed>& scanning_device_beacon_seeds) |
| 56 const override; | 56 const override; |
| 57 RemoteDevice const* IdentifyRemoteDeviceByAdvertisement( | 57 RemoteDevice const* IdentifyRemoteDeviceByAdvertisement( |
| 58 const std::string& advertisement_service_data, | 58 const std::string& advertisement_service_data, |
| 59 const std::vector<RemoteDevice>& device_list, | 59 const std::vector<RemoteDevice>& device_list, |
| 60 const std::vector<BeaconSeed>& scanning_device_beacon_seeds) | 60 const std::vector<BeaconSeed>& scanning_device_beacon_seeds) |
| 61 const override; | 61 const override; |
| 62 | 62 |
| 63 int num_identify_calls() { |
| 64 return num_identify_calls_; |
| 65 } |
| 66 |
| 63 private: | 67 private: |
| 64 std::unique_ptr<EidData> background_scan_filter_; | 68 std::unique_ptr<EidData> background_scan_filter_; |
| 65 std::unique_ptr<DataWithTimestamp> advertisement_; | 69 std::unique_ptr<DataWithTimestamp> advertisement_; |
| 66 std::unique_ptr<std::vector<std::string>> possible_advertisements_; | 70 std::unique_ptr<std::vector<std::string>> possible_advertisements_; |
| 67 const RemoteDevice* identified_device_; | 71 const RemoteDevice* identified_device_; |
| 72 |
| 73 int num_identify_calls_; |
| 68 }; | 74 }; |
| 69 | 75 |
| 70 } // namespace cryptauth | 76 } // namespace cryptauth |
| 71 | 77 |
| 72 #endif // COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ | 78 #endif // COMPONENTS_CRYPTAUTH_BLE_MOCK_EID_GENERATOR_H_ |
| OLD | NEW |