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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc

Issue 2251493002: arc: Fix crash on Arc window close. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit_tests fixed Created 4 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: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
index cf060648dab5a4e9ea943b6fa0d8602ea35ef868..35c7f0eb8e05ab772427e0d6cec7ac9a80d04627 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
@@ -1827,8 +1827,13 @@ TEST_F(ChromeLauncherControllerImplTest, ArcRunningApp) {
EXPECT_EQ(0, launcher_controller_->GetShelfIDForAppID(arc_app_id));
// Normal flow, create/destroy tasks.
+ std::string window_app_id1("org.chromium.arc.1");
+ std::string window_app_id2("org.chromium.arc.2");
+ std::string window_app_id3("org.chromium.arc.3");
+ CreateArcWindow(window_app_id1);
arc_test_.app_instance()->SendTaskCreated(1, arc_test_.fake_apps()[0]);
EXPECT_NE(0, launcher_controller_->GetShelfIDForAppID(arc_app_id));
+ CreateArcWindow(window_app_id2);
arc_test_.app_instance()->SendTaskCreated(2, arc_test_.fake_apps()[0]);
EXPECT_NE(0, launcher_controller_->GetShelfIDForAppID(arc_app_id));
arc_test_.app_instance()->SendTaskDestroyed(1);
@@ -1837,6 +1842,7 @@ TEST_F(ChromeLauncherControllerImplTest, ArcRunningApp) {
EXPECT_EQ(0, launcher_controller_->GetShelfIDForAppID(arc_app_id));
// Stopping bridge removes apps.
+ CreateArcWindow(window_app_id3);
arc_test_.app_instance()->SendTaskCreated(3, arc_test_.fake_apps()[0]);
EXPECT_NE(0, launcher_controller_->GetShelfIDForAppID(arc_app_id));
arc_test_.StopArcInstance();

Powered by Google App Engine
This is Rietveld 408576698