OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ | 5 #ifndef CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ |
6 #define CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ | 6 #define CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 void CallMostRecentCallback(const std::string& wifi_guid); | 24 void CallMostRecentCallback(const std::string& wifi_guid); |
25 | 25 |
26 std::string most_recent_ssid() { return most_recent_ssid_; } | 26 std::string most_recent_ssid() { return most_recent_ssid_; } |
27 | 27 |
28 std::string most_recent_password() { return most_recent_password_; } | 28 std::string most_recent_password() { return most_recent_password_; } |
29 | 29 |
30 // WifiHotspotConnector: | 30 // WifiHotspotConnector: |
31 void ConnectToWifiHotspot( | 31 void ConnectToWifiHotspot( |
32 const std::string& ssid, | 32 const std::string& ssid, |
33 const std::string& password, | 33 const std::string& password, |
34 const std::string& guid, | |
Kyle Horimoto
2017/04/28 22:07:28
Use tether_network_guid. We need to be specific, s
lesliewatkins
2017/04/29 00:57:54
Done.
| |
34 const WifiHotspotConnector::WifiConnectionCallback& callback) override; | 35 const WifiHotspotConnector::WifiConnectionCallback& callback) override; |
35 | 36 |
36 private: | 37 private: |
37 std::string most_recent_ssid_; | 38 std::string most_recent_ssid_; |
38 std::string most_recent_password_; | 39 std::string most_recent_password_; |
39 WifiHotspotConnector::WifiConnectionCallback most_recent_callback_; | 40 WifiHotspotConnector::WifiConnectionCallback most_recent_callback_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(FakeWifiHotspotConnector); | 42 DISALLOW_COPY_AND_ASSIGN(FakeWifiHotspotConnector); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace tether | 45 } // namespace tether |
45 | 46 |
46 } // namespace chromeos | 47 } // namespace chromeos |
47 | 48 |
48 #endif // CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ | 49 #endif // CHROMEOS_COMPONENTS_TETHER_FAKE_WIFI_HOTSPOT_CONNECTOR_H_ |
OLD | NEW |