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

Unified Diff: components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: fix memory issue Created 3 years, 7 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/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 24460f9a2c01020c2855ce60916d14a57e0ecc7f..e1a6eb0992ddd5f65f934597ae80dfa2c8ea1c84 100644
--- a/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc
+++ b/components/proximity_auth/bluetooth_low_energy_connection_finder_unittest.cc
@@ -53,16 +53,6 @@ const char kEidForNextTimeQuantum[] = "\x56\x78";
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:
@@ -86,7 +76,6 @@ class MockBluetoothLowEnergyConnectionFinder
: BluetoothLowEnergyConnectionFinder(
cryptauth::CreateLERemoteDeviceForTest(),
kBLEGattServiceUUID,
- CreateBeaconSeeds(),
base::MakeUnique<FakeEidGenerator>(this),
nullptr) {}

Powered by Google App Engine
This is Rietveld 408576698