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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_test_impl.cc

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/net/network_portal_detector_test_impl.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_test_impl.cc b/chrome/browser/chromeos/net/network_portal_detector_test_impl.cc
index ca2980ac8cb0dc8cb57e911fff70f1ec3245aea3..2649eb53a3c31e6238888c5f2ed5e7d1915e780c 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_test_impl.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_test_impl.cc
@@ -17,6 +17,7 @@ NetworkPortalDetectorTestImpl::~NetworkPortalDetectorTestImpl() {
void NetworkPortalDetectorTestImpl::SetDefaultNetworkPathForTesting(
const std::string& service_path) {
+ DVLOG(1) << "SetDefaultNetworkPathForTesting: " << service_path;
if (service_path.empty())
default_network_.reset();
else
@@ -26,6 +27,8 @@ void NetworkPortalDetectorTestImpl::SetDefaultNetworkPathForTesting(
void NetworkPortalDetectorTestImpl::SetDetectionResultsForTesting(
const std::string& service_path,
const CaptivePortalState& state) {
+ DVLOG(1) << "SetDetectionResultsForTesting: " << service_path << " = "
+ << NetworkPortalDetector::CaptivePortalStatusString(state.status);
if (!service_path.empty())
portal_state_map_[service_path] = state;
}
@@ -69,8 +72,12 @@ NetworkPortalDetector::CaptivePortalState
NetworkPortalDetectorTestImpl::GetCaptivePortalState(
const std::string& service_path) {
CaptivePortalStateMap::iterator it = portal_state_map_.find(service_path);
- if (it == portal_state_map_.end())
+ if (it == portal_state_map_.end()) {
+ DVLOG(2) << "GetCaptivePortalState Not found: " << service_path;
return CaptivePortalState();
+ }
+ DVLOG(2) << "GetCaptivePortalState: " << service_path << " = "
+ << CaptivePortalStatusString(it->second.status);
return it->second;
}

Powered by Google App Engine
This is Rietveld 408576698