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

Unified Diff: ash/common/wm/mru_window_tracker_unittest.cc

Issue 2563343002: Remove extension_misc::IsImeMenuExtensionId. (Closed)
Patch Set: Remove kExcludeFromMruKey. Created 4 years 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/common/wm/mru_window_tracker.cc ('k') | ash/common/wm/window_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/mru_window_tracker_unittest.cc
diff --git a/ash/common/wm/mru_window_tracker_unittest.cc b/ash/common/wm/mru_window_tracker_unittest.cc
index 77fe65d862cb8743b418223d1816200a23a945ae..cf92338fbcd0dd262c335c0180e9b84a485ec4e2 100644
--- a/ash/common/wm/mru_window_tracker_unittest.cc
+++ b/ash/common/wm/mru_window_tracker_unittest.cc
@@ -113,30 +113,4 @@ TEST_F(MruWindowTrackerTest, DraggedWindowsInListOnlyOnce) {
EXPECT_EQ(1, std::count(window_list.begin(), window_list.end(), w1));
}
-// Tests that windows with propery of |kExcludeFromMruKey|==true are not in the
-// window list.
-TEST_F(MruWindowTrackerTest, ExcludedFromMru) {
- std::unique_ptr<WindowOwner> w1_owner(CreateTestWindow());
- WmWindow* w1 = w1_owner->window();
- std::unique_ptr<WindowOwner> w2_owner(CreateTestWindow());
- WmWindow* w2 = w2_owner->window();
- std::unique_ptr<WindowOwner> w3_owner(CreateTestWindow());
- WmWindow* w3 = w3_owner->window();
-
- w1->GetWindowState()->SetExcludedFromMru(true);
- w3->GetWindowState()->SetExcludedFromMru(true);
-
- w3->Activate();
- w2->Activate();
- w1->Activate();
-
- // Expect the windows with |kExcludeFromMruKey| property being true are not
- // in the list.
- WmWindow::Windows window_list = mru_window_tracker()->BuildMruWindowList();
-
- // As |w1| and |w3| are excluded from the list, only |w2| should be present.
- ASSERT_EQ(1u, window_list.size());
- EXPECT_EQ(w2, window_list[0]);
-}
-
} // namespace ash
« no previous file with comments | « ash/common/wm/mru_window_tracker.cc ('k') | ash/common/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698