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

Unified Diff: chromeos/components/tether/fake_wifi_hotspot_connector.h

Issue 2792483002: [CrOS Tether] Create TetherConnector, which attempts to connect to a nearby tether host. (Closed)
Patch Set: hansberry@ comment. 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
Index: chromeos/components/tether/fake_wifi_hotspot_connector.h
diff --git a/chromeos/components/tether/fake_wifi_hotspot_connector.h b/chromeos/components/tether/fake_wifi_hotspot_connector.h
index 1f4c17208a40cdbc262b48061cd982c1260c203b..6518eab625777643951532547250a0f84e000d66 100644
--- a/chromeos/components/tether/fake_wifi_hotspot_connector.h
+++ b/chromeos/components/tether/fake_wifi_hotspot_connector.h
@@ -17,7 +17,7 @@ namespace tether {
// Test double for WifiHotspotConnector.
class FakeWifiHotspotConnector : public WifiHotspotConnector {
public:
- static std::unique_ptr<FakeWifiHotspotConnector> Create();
+ FakeWifiHotspotConnector(NetworkStateHandler* network_state_handler);
~FakeWifiHotspotConnector() override;
// Pass an empty string for |wifi_guid| to signify a failed connection.
@@ -34,18 +34,10 @@ class FakeWifiHotspotConnector : public WifiHotspotConnector {
const WifiHotspotConnector::WifiConnectionCallback& callback) override;
private:
- FakeWifiHotspotConnector(
- std::unique_ptr<NetworkStateHandler> network_state_handler);
-
std::string most_recent_ssid_;
std::string most_recent_password_;
WifiHotspotConnector::WifiConnectionCallback most_recent_callback_;
- // Not actually used. Only stored to keep the pointer valid for the lifetime
- // of the object so that AddObserver() and RemoteObserver() can be called in
- // the base class constructor/destructor.
- std::unique_ptr<NetworkStateHandler> network_state_handler_;
-
DISALLOW_COPY_AND_ASSIGN(FakeWifiHotspotConnector);
};

Powered by Google App Engine
This is Rietveld 408576698