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

Unified Diff: components/cryptauth/mock_foreground_eid_generator.h

Issue 2847233003: [EasyUnlock] Move DataWithTimestamp out of ForegroundEidGenerator so it can be shared. (Closed)
Patch Set: Created 3 years, 8 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_foreground_eid_generator.h
diff --git a/components/cryptauth/mock_foreground_eid_generator.h b/components/cryptauth/mock_foreground_eid_generator.h
index c9b328d041ed3f9f52ff586e490c987d7e488164..1b5932e06371f28d917ae4d5e3615718b3b14d65 100644
--- a/components/cryptauth/mock_foreground_eid_generator.h
+++ b/components/cryptauth/mock_foreground_eid_generator.h
@@ -30,7 +30,7 @@ class MockForegroundEidGenerator : public ForegroundEidGenerator {
background_scan_filter_ = std::move(background_scan_filter);
}
- void set_advertisement(std::unique_ptr<DataWithTimestamp> advertisement) {
+ void set_advertisement(std::unique_ptr<EidDataWithTimestamp> advertisement) {
advertisement_ = std::move(advertisement);
}
@@ -47,7 +47,7 @@ class MockForegroundEidGenerator : public ForegroundEidGenerator {
std::unique_ptr<EidData> GenerateBackgroundScanFilter(
const std::vector<BeaconSeed>& scanning_device_beacon_seeds)
const override;
- std::unique_ptr<DataWithTimestamp> GenerateAdvertisement(
+ std::unique_ptr<EidDataWithTimestamp> GenerateAdvertisement(
const std::string& advertising_device_public_key,
const std::vector<BeaconSeed>& scanning_device_beacon_seeds)
const override;
@@ -65,7 +65,7 @@ class MockForegroundEidGenerator : public ForegroundEidGenerator {
private:
std::unique_ptr<EidData> background_scan_filter_;
- std::unique_ptr<DataWithTimestamp> advertisement_;
+ std::unique_ptr<EidDataWithTimestamp> advertisement_;
std::unique_ptr<std::vector<std::string>> possible_advertisements_;
const RemoteDevice* identified_device_;

Powered by Google App Engine
This is Rietveld 408576698