| Index: chromeos/components/tether/host_scanner_unittest.cc
|
| diff --git a/chromeos/components/tether/host_scanner_unittest.cc b/chromeos/components/tether/host_scanner_unittest.cc
|
| index 6eedaec95335397b6c27ed9b808e6805f27a6a09..63eca340a37aafac01655ac4cae143302d4b5d9c 100644
|
| --- a/chromeos/components/tether/host_scanner_unittest.cc
|
| +++ b/chromeos/components/tether/host_scanner_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/run_loop.h"
|
| #include "base/test/scoped_task_environment.h"
|
| +#include "chromeos/components/tether/device_id_tether_network_guid_map.h"
|
| #include "chromeos/components/tether/fake_ble_connection_manager.h"
|
| #include "chromeos/components/tether/fake_notification_presenter.h"
|
| #include "chromeos/components/tether/fake_tether_host_fetcher.h"
|
| @@ -145,19 +146,21 @@ class HostScannerTest : public NetworkStateTest {
|
| fake_ble_connection_manager_ = base::MakeUnique<FakeBleConnectionManager>();
|
| fake_host_scan_device_prioritizer_ =
|
| base::MakeUnique<FakeHostScanDevicePrioritizer>();
|
| + fake_notification_presenter_ =
|
| + base::MakeUnique<FakeNotificationPresenter>();
|
| + device_id_tether_network_guid_map_ =
|
| + base::MakeUnique<DeviceIdTetherNetworkGuidMap>();
|
|
|
| fake_host_scanner_operation_factory_ =
|
| base::WrapUnique(new FakeHostScannerOperationFactory(test_devices_));
|
| HostScannerOperation::Factory::SetInstanceForTesting(
|
| fake_host_scanner_operation_factory_.get());
|
|
|
| - fake_notification_presenter_ =
|
| - base::MakeUnique<FakeNotificationPresenter>();
|
| -
|
| host_scanner_ = base::WrapUnique(new HostScanner(
|
| fake_tether_host_fetcher_.get(), fake_ble_connection_manager_.get(),
|
| fake_host_scan_device_prioritizer_.get(), network_state_handler(),
|
| - fake_notification_presenter_.get()));
|
| + fake_notification_presenter_.get(),
|
| + device_id_tether_network_guid_map_.get()));
|
| }
|
|
|
| void TearDown() override {
|
| @@ -215,6 +218,10 @@ class HostScannerTest : public NetworkStateTest {
|
| std::unique_ptr<FakeTetherHostFetcher> fake_tether_host_fetcher_;
|
| std::unique_ptr<FakeBleConnectionManager> fake_ble_connection_manager_;
|
| std::unique_ptr<HostScanDevicePrioritizer> fake_host_scan_device_prioritizer_;
|
| + std::unique_ptr<FakeNotificationPresenter> fake_notification_presenter_;
|
| + // TODO(hansberry): Use a fake for this when a real mapping scheme is created.
|
| + std::unique_ptr<DeviceIdTetherNetworkGuidMap>
|
| + device_id_tether_network_guid_map_;
|
|
|
| std::unique_ptr<FakeHostScannerOperationFactory>
|
| fake_host_scanner_operation_factory_;
|
| @@ -224,8 +231,6 @@ class HostScannerTest : public NetworkStateTest {
|
|
|
| std::unique_ptr<HostScanner> host_scanner_;
|
|
|
| - std::unique_ptr<FakeNotificationPresenter> fake_notification_presenter_;
|
| -
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(HostScannerTest);
|
| };
|
|
|