Index: components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc |
diff --git a/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc b/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc |
index e1a6eb0992ddd5f65f934597ae80dfa2c8ea1c84..24460f9a2c01020c2855ce60916d14a57e0ecc7f 100644 |
--- a/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc |
+++ b/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc |
@@ -53,6 +53,16 @@ |
const char kWrongEid[] = "\xff\xff"; |
const int64_t kEidPeriodMs = 60 * 1000 * 15; // 15 minutes. |
+std::vector<cryptauth::BeaconSeed> CreateBeaconSeeds() { |
+ std::vector<cryptauth::BeaconSeed> beacon_seeds; |
+ cryptauth::BeaconSeed seed; |
+ seed.set_data("\xab\xcd"); |
+ seed.set_start_time_millis(0); |
+ seed.set_end_time_millis(10000000); |
+ beacon_seeds.push_back(seed); |
+ return beacon_seeds; |
+} |
+ |
class MockBluetoothLowEnergyConnectionFinder; |
class FakeEidGenerator : public cryptauth::BackgroundEidGenerator { |
public: |
@@ -76,6 +86,7 @@ |
: BluetoothLowEnergyConnectionFinder( |
cryptauth::CreateLERemoteDeviceForTest(), |
kBLEGattServiceUUID, |
+ CreateBeaconSeeds(), |
base::MakeUnique<FakeEidGenerator>(this), |
nullptr) {} |