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

Unified Diff: ash/system/chromeos/network/network_state_notifier_unittest.cc

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos_unittests Created 7 years, 7 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
« no previous file with comments | « ash/system/chromeos/network/network_state_notifier.cc ('k') | ash/system/chromeos/network/tray_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_state_notifier_unittest.cc
diff --git a/ash/system/chromeos/network/network_state_notifier_unittest.cc b/ash/system/chromeos/network/network_state_notifier_unittest.cc
index fde1ad036db7e25b0f11be53fd2e67e4303137e0..292587c4ce4c858067c9f2fd2d2238bdb79d1cff 100644
--- a/ash/system/chromeos/network/network_state_notifier_unittest.cc
+++ b/ash/system/chromeos/network/network_state_notifier_unittest.cc
@@ -25,8 +25,9 @@ ash::SystemTray* GetSystemTray() {
} // namespace
-using chromeos::NetworkStateHandler;
using chromeos::DBusThreadManager;
+using chromeos::NetworkHandler;
+using chromeos::NetworkStateHandler;
using chromeos::ShillDeviceClient;
using chromeos::ShillServiceClient;
@@ -43,14 +44,14 @@ class NetworkStateNotifierTest : public AshTestBase {
virtual void SetUp() OVERRIDE {
DBusThreadManager::InitializeWithStub();
SetupDefaultShillState();
- NetworkStateHandler::Initialize();
+ NetworkHandler::Initialize();
RunAllPendingInMessageLoop();
AshTestBase::SetUp();
}
virtual void TearDown() OVERRIDE {
AshTestBase::TearDown();
- NetworkStateHandler::Shutdown();
+ NetworkHandler::Shutdown();
DBusThreadManager::Shutdown();
}
@@ -96,7 +97,7 @@ TEST_F(NetworkStateNotifierTest, ConnectionFailure) {
EXPECT_FALSE(GetSystemTray()->CloseNotificationBubbleForTest());
// State -> Failure for connecting network should spawn a notification
SetServiceState("wifi1", flimflam::kStateAssociation);
- NetworkStateHandler::Get()->SetConnectingNetwork("wifi1");
+ NetworkHandler::Get()->network_state_handler()->SetConnectingNetwork("wifi1");
SetServiceState("wifi1", flimflam::kStateFailure);
EXPECT_TRUE(GetSystemTray()->CloseNotificationBubbleForTest());
// Failure -> Idle should not spawn a notification
« no previous file with comments | « ash/system/chromeos/network/network_state_notifier.cc ('k') | ash/system/chromeos/network/tray_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698