| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "chromeos/components/tether/tether_disconnector_impl.h" | 5 #include "chromeos/components/tether/tether_disconnector_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "chromeos/components/tether/connect_tethering_operation.h" | 9 #include "chromeos/components/tether/connect_tethering_operation.h" |
| 10 #include "chromeos/components/tether/device_id_tether_network_guid_map.h" | 10 #include "chromeos/components/tether/device_id_tether_network_guid_map.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 public: | 103 public: |
| 104 TestTetherConnector() | 104 TestTetherConnector() |
| 105 : TetherConnector(nullptr /* network_state_handler */, | 105 : TetherConnector(nullptr /* network_state_handler */, |
| 106 nullptr /* wifi_hotspot_connector */, | 106 nullptr /* wifi_hotspot_connector */, |
| 107 nullptr /* active_host */, | 107 nullptr /* active_host */, |
| 108 nullptr /* tether_host_fetcher */, | 108 nullptr /* tether_host_fetcher */, |
| 109 nullptr /* connection_manager */, | 109 nullptr /* connection_manager */, |
| 110 nullptr /* tether_host_response_recorder */, | 110 nullptr /* tether_host_response_recorder */, |
| 111 nullptr /* device_id_tether_network_guid_map */, | 111 nullptr /* device_id_tether_network_guid_map */, |
| 112 nullptr /* host_scan_cache */, | 112 nullptr /* host_scan_cache */, |
| 113 nullptr /* notification_presenter */), | 113 nullptr /* notification_presenter */, |
| 114 nullptr /* host_connection_metrics_logger */), |
| 114 should_cancel_successfully_(true) {} | 115 should_cancel_successfully_(true) {} |
| 115 ~TestTetherConnector() override {} | 116 ~TestTetherConnector() override {} |
| 116 | 117 |
| 117 void set_should_cancel_successfully(bool should_cancel_successfully) { | 118 void set_should_cancel_successfully(bool should_cancel_successfully) { |
| 118 should_cancel_successfully_ = should_cancel_successfully; | 119 should_cancel_successfully_ = should_cancel_successfully; |
| 119 } | 120 } |
| 120 | 121 |
| 121 std::string last_canceled_tether_network_guid() { | 122 std::string last_canceled_tether_network_guid() { |
| 122 return last_canceled_tether_network_guid_; | 123 return last_canceled_tether_network_guid_; |
| 123 } | 124 } |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 test_pref_service_.get()); | 674 test_pref_service_.get()); |
| 674 EXPECT_EQ( | 675 EXPECT_EQ( |
| 675 kWifiNetworkGuid, | 676 kWifiNetworkGuid, |
| 676 fake_network_configuration_remover_->last_removed_wifi_network_guid()); | 677 fake_network_configuration_remover_->last_removed_wifi_network_guid()); |
| 677 EXPECT_TRUE(GetDisconnectingWifiGuidFromPrefs().empty()); | 678 EXPECT_TRUE(GetDisconnectingWifiGuidFromPrefs().empty()); |
| 678 } | 679 } |
| 679 | 680 |
| 680 } // namespace tether | 681 } // namespace tether |
| 681 | 682 |
| 682 } // namespace chromeos | 683 } // namespace chromeos |
| OLD | NEW |