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

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

Issue 2067943004: ARC: Add badge for Chrome hosted Apps if Arc++ is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address xiyuan@'s comment. Rebase Created 4 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/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 ef3a8950effdae1f002810217915e7f0f0c6056d..e8561649e16ac73bb085c75ee84f18b5f529880a 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
@@ -2742,7 +2742,9 @@ TEST_F(ChromeLauncherControllerImplTest, AppPanels) {
InitLauncherControllerWithBrowser();
// App list and Browser shortcut ShelfItems are added.
EXPECT_EQ(2, model_observer_->added());
- EXPECT_EQ(1, model_observer_->changed());
+ // Browser shortcut item changed twice because the browser shortcut needs to
+ // be updated according to the ARC status when attaching profile.
+ EXPECT_EQ(2, model_observer_->changed());
const std::string app_id = extension1_->id();
// app_icon_loader is owned by ChromeLauncherControllerImpl.
@@ -2759,7 +2761,7 @@ TEST_F(ChromeLauncherControllerImplTest, AppPanels) {
app_panel_controller, app_id, ash::STATUS_RUNNING);
int panel_index = model_observer_->last_index();
EXPECT_EQ(3, model_observer_->added());
- EXPECT_EQ(1, model_observer_->changed());
+ EXPECT_EQ(2, model_observer_->changed());
EXPECT_EQ(1, app_icon_loader->fetch_count());
model_observer_->clear_counts();

Powered by Google App Engine
This is Rietveld 408576698