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

Side by Side Diff: chromeos/components/tether/tether_disconnector_impl_unittest.cc

Issue 2949343002: Tether: record each type of host connection result. (Closed)
Patch Set: Fix crash. Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « chromeos/components/tether/tether_connector_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/components/tether/tether_connector_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698