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

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

Issue 2801353002: [CrOS Tether] Fill out the Initializer class. Tether will now initialize fully once the flag is ena… (Closed)
Patch Set: Added missing dep. 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
« no previous file with comments | « chromeos/components/tether/host_scanner.h ('k') | chromeos/components/tether/initializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0f80266b6eabf038f538dcea1b4efd5e2a7d061f..6eedaec95335397b6c27ed9b808e6805f27a6a09 100644
--- a/chromeos/components/tether/host_scanner_unittest.cc
+++ b/chromeos/components/tether/host_scanner_unittest.cc
@@ -15,6 +15,7 @@
#include "chromeos/components/tether/fake_notification_presenter.h"
#include "chromeos/components/tether/fake_tether_host_fetcher.h"
#include "chromeos/components/tether/host_scan_device_prioritizer.h"
+#include "chromeos/components/tether/host_scanner.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
@@ -153,16 +154,18 @@ class HostScannerTest : public NetworkStateTest {
fake_notification_presenter_ =
base::MakeUnique<FakeNotificationPresenter>();
- host_scanner_ = base::MakeUnique<HostScanner>(
+ 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()));
}
void TearDown() override {
ShutdownNetworkState();
NetworkStateTest::TearDown();
DBusThreadManager::Shutdown();
+
+ HostScannerOperation::Factory::SetInstanceForTesting(nullptr);
}
// Causes |fake_operation| to receive the scan result in
@@ -355,4 +358,4 @@ TEST_F(HostScannerTest, TestScan_MultipleScanCallsDuringOperation) {
} // namespace tether
-} // namespace cryptauth
+} // namespace chromeos
« no previous file with comments | « chromeos/components/tether/host_scanner.h ('k') | chromeos/components/tether/initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698