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

Unified Diff: chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.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/login/ui/captive_portal_window_browsertest.cc
diff --git a/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc b/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
index 6fc8c19a67cf98003ea28f913556ec7a0637550b..2ee8b5572ef3d9f1a5d3f29746d1c1dcfba9e42b 100644
--- a/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
+++ b/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
@@ -16,13 +16,12 @@
#include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chromeos/chromeos_switches.h"
+#include "chromeos/dbus/fake_shill_manager_client.h"
namespace chromeos {
namespace {
-const char kStubEthernetServicePath[] = "eth1";
-
// Stub implementation of CaptivePortalWindowProxyDelegate, does
// nothing and used to instantiate CaptivePortalWindowProxy.
class CaptivePortalWindowProxyStubDelegate
@@ -189,9 +188,9 @@ class CaptivePortalWindowCtorDtorTest : public LoginManagerTest {
portal_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_PORTAL;
portal_state.response_code = 200;
network_portal_detector_->SetDefaultNetworkPathForTesting(
- kStubEthernetServicePath);
+ FakeShillManagerClient::kFakeEthernetNetworkPath);
network_portal_detector_->SetDetectionResultsForTesting(
- kStubEthernetServicePath, portal_state);
+ FakeShillManagerClient::kFakeEthernetNetworkPath, portal_state);
}
protected:

Powered by Google App Engine
This is Rietveld 408576698