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

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

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track deafult_network and reset did_show_out_of_credits on any change Created 7 years, 4 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: 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 d8d036ad6531c94c98c715a832fba31af8db4738..4743f0a9c8d86be14bad629609aa130e8b9850b7 100644
--- a/ash/system/chromeos/network/network_state_notifier_unittest.cc
+++ b/ash/system/chromeos/network/network_state_notifier_unittest.cc
@@ -15,6 +15,7 @@
#include "chromeos/dbus/shill_device_client.h"
#include "chromeos/dbus/shill_service_client.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
+#include "ui/message_center/message_center.h"
namespace {
@@ -90,7 +91,10 @@ TEST_F(NetworkStateNotifierTest, ConnectionFailure) {
ash::network_connect::ConnectToNetwork("wifi1", NULL /* owning_window */);
RunAllPendingInMessageLoop();
// Failure should spawn a notification.
- EXPECT_TRUE(GetSystemTray()->CloseNotificationBubbleForTest());
+ message_center::MessageCenter* message_center =
+ message_center::MessageCenter::Get();
+ EXPECT_TRUE(message_center->HasNotification(
+ network_connect::kNetworkConnectNotificationId));
}
} // namespace test
« no previous file with comments | « ash/system/chromeos/network/network_state_notifier.cc ('k') | ash/system/chromeos/network/network_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698