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

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

Issue 2916203002: [CrOS Tether] Remove some debug logs in ActiveHostTest which should not have been submitted. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | 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/active_host.h" 5 #include "chromeos/components/tether/active_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 19 matching lines...) Expand all
30 30
31 bool operator==(const GetActiveHostResult& other) const { 31 bool operator==(const GetActiveHostResult& other) const {
32 bool devices_equal; 32 bool devices_equal;
33 if (remote_device) { 33 if (remote_device) {
34 devices_equal = 34 devices_equal =
35 other.remote_device && *remote_device == *other.remote_device; 35 other.remote_device && *remote_device == *other.remote_device;
36 } else { 36 } else {
37 devices_equal = !other.remote_device; 37 devices_equal = !other.remote_device;
38 } 38 }
39 39
40 LOG(ERROR) << (active_host_status == other.active_host_status);
41 LOG(ERROR) << devices_equal;
42 LOG(ERROR) << (other.tether_network_guid);
43 LOG(ERROR) << (tether_network_guid);
44 LOG(ERROR) << (other.wifi_network_guid);
45 LOG(ERROR) << (wifi_network_guid);
46
47 return active_host_status == other.active_host_status && devices_equal && 40 return active_host_status == other.active_host_status && devices_equal &&
48 tether_network_guid == other.tether_network_guid && 41 tether_network_guid == other.tether_network_guid &&
49 wifi_network_guid == other.wifi_network_guid; 42 wifi_network_guid == other.wifi_network_guid;
50 } 43 }
51 }; 44 };
52 45
53 class TestObserver : public ActiveHost::Observer { 46 class TestObserver : public ActiveHost::Observer {
54 public: 47 public:
55 void OnActiveHostChanged( 48 void OnActiveHostChanged(
56 const ActiveHost::ActiveHostChangeInfo& change_info) override { 49 const ActiveHost::ActiveHostChangeInfo& change_info) override {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 ActiveHost::ActiveHostStatus::CONNECTED, nullptr, 252 ActiveHost::ActiveHostStatus::CONNECTED, nullptr,
260 test_devices_[0].GetDeviceId(), 253 test_devices_[0].GetDeviceId(),
261 "" /* new_tether_network_guid */, "tetherNetworkGuid", 254 "" /* new_tether_network_guid */, "tetherNetworkGuid",
262 "" /* new_wifi_network_guid */, "wifiNetworkGuid"), 255 "" /* new_wifi_network_guid */, "wifiNetworkGuid"),
263 test_observer_->host_changed_updates()[2]); 256 test_observer_->host_changed_updates()[2]);
264 } 257 }
265 258
266 } // namespace tether 259 } // namespace tether
267 260
268 } // namespace cryptauth 261 } // namespace cryptauth
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698