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

Unified Diff: chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc

Issue 2384333003: Fixed nullptr default network crash. (Closed)
Patch Set: Created 4 years, 2 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 | « chrome/browser/chromeos/arc/arc_settings_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc
diff --git a/chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc b/chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc
index ed84f898c432e9a4e70cef4421d9463ba16e7dd1..d24a3bf08e254037eb8cd9d62e1be3f7251c4296 100644
--- a/chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc
+++ b/chrome/browser/chromeos/arc/arc_settings_service_browsertest.cc
@@ -348,4 +348,16 @@ IN_PROC_BROWSER_TEST_F(ArcSettingsServiceTest, DefaultNetworkDisconnectedTest) {
1);
}
+IN_PROC_BROWSER_TEST_F(ArcSettingsServiceTest, NoNetworkConnectedTest) {
+ // Disconnect all networks.
+ fake_intent_helper_instance_->clear_broadcasts();
+ DisconnectNetworkService(kDefaultServicePath);
+ DisconnectNetworkService(kWifiServicePath);
+ RunUntilIdle();
+
+ EXPECT_EQ(
+ CountProxyBroadcasts(fake_intent_helper_instance_->broadcasts(), nullptr),
+ 0);
+}
+
} // namespace arc
« no previous file with comments | « chrome/browser/chromeos/arc/arc_settings_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698