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

Unified Diff: ash/shelf/shelf_view_unittest.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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/shelf/shelf_view.cc ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view_unittest.cc
diff --git a/ash/shelf/shelf_view_unittest.cc b/ash/shelf/shelf_view_unittest.cc
index beb6620da87457b23a3196b492d27eca5b4da5ab..640a5c5b8be53e046c5c8c4d652371a56ece6b91 100644
--- a/ash/shelf/shelf_view_unittest.cc
+++ b/ash/shelf/shelf_view_unittest.cc
@@ -1841,6 +1841,15 @@ TEST_F(ShelfViewTest, Launcher_LaunchTaskIsRecordedWhenNewWindowIsCreated) {
EXPECT_EQ(1, user_action_tester.GetActionCount("Launcher_LaunchTask"));
}
+// Verifies that a Launcher_MinimizeTask UMA user action is recorded when
+// selecting an icon causes an existing window to be minimized.
+TEST_F(ShelfViewTest, Launcher_MinimizeTaskIsRecordedWhenWindowIsMinimized) {
+ base::UserActionTester user_action_tester;
+ test_api_->RecordIconActivatedAction(
+ ShelfItemDelegate::kExistingWindowMinimized);
+ EXPECT_EQ(1, user_action_tester.GetActionCount("Launcher_MinimizeTask"));
+}
+
// Verifies that a Launcher_SwitchTask UMA user action is recorded when
// selecting an icon causes an existing window to be activated.
TEST_F(ShelfViewTest,
« no previous file with comments | « ash/shelf/shelf_view.cc ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698