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

Unified Diff: chromeos/components/tether/ble_connection_manager_unittest.cc

Issue 2915833003: Tether: Break helper TimerFactory out of BleConnectionManager and HostScanCache. (Closed)
Patch Set: Add missing files. 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: chromeos/components/tether/ble_connection_manager_unittest.cc
diff --git a/chromeos/components/tether/ble_connection_manager_unittest.cc b/chromeos/components/tether/ble_connection_manager_unittest.cc
index b18e5ef5f6602de0538ef02351761d6bd8a806be..89c5204ffd29de39c2726e20f679d08ca5573d55 100644
--- a/chromeos/components/tether/ble_connection_manager_unittest.cc
+++ b/chromeos/components/tether/ble_connection_manager_unittest.cc
@@ -8,6 +8,7 @@
#include "base/timer/mock_timer.h"
#include "chromeos/components/tether/ble_constants.h"
#include "chromeos/components/tether/proto/tether.pb.h"
+#include "chromeos/components/tether/timer_factory.h"
#include "components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.h"
#include "components/cryptauth/bluetooth_throttler.h"
#include "components/cryptauth/connection.h"
@@ -229,9 +230,9 @@ class BleConnectionManagerTest : public testing::Test {
std::string expected_device_address_;
};
- class MockTimerFactory : public BleConnectionManager::TimerFactory {
+ class MockTimerFactory : public TimerFactory {
khorimoto 2017/05/31 18:13:28 Move to anonymous namespace.
Ryan Hansberry 2017/05/31 18:24:54 Done.
public:
- std::unique_ptr<base::Timer> CreateTimer() override {
+ std::unique_ptr<base::Timer> CreateOneShotTimer() override {
return base::MakeUnique<base::MockTimer>(false /* retains_user_task */,
false /* is_repeating */);
}

Powered by Google App Engine
This is Rietveld 408576698