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

Side by Side Diff: components/cryptauth/mock_eid_generator.h

Issue 2604063003: [CrOS Tether] Create BleScanner, a class which scan BLE advertisements and identifies nearby device… (Closed)
Patch Set: Add missing dependency. Created 3 years, 11 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 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
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_
OLDNEW
« no previous file with comments | « chromeos/components/tether/mock_local_device_data_provider.cc ('k') | components/cryptauth/mock_eid_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698