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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/cryptauth/mock_eid_generator.h
diff --git a/components/cryptauth/mock_eid_generator.h b/components/cryptauth/mock_eid_generator.h
index 6317200b25082e80a0f857262f082da9608939ef..4f624a22fe8c02f76ea2ca84c4aa9ab1f32db902 100644
--- a/components/cryptauth/mock_eid_generator.h
+++ b/components/cryptauth/mock_eid_generator.h
@@ -60,11 +60,17 @@ class MockEidGenerator : public EidGenerator {
const std::vector<BeaconSeed>& scanning_device_beacon_seeds)
const override;
+ int num_identify_calls() {
+ return num_identify_calls_;
+ }
+
private:
std::unique_ptr<EidData> background_scan_filter_;
std::unique_ptr<DataWithTimestamp> advertisement_;
std::unique_ptr<std::vector<std::string>> possible_advertisements_;
const RemoteDevice* identified_device_;
+
+ int num_identify_calls_;
};
} // namespace cryptauth
« 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