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

Unified Diff: ash/wm/activation_controller_unittest.cc

Issue 9689047: Added notion of currently active app / browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mid air collision Created 8 years, 9 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/launcher/launcher_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/activation_controller_unittest.cc
diff --git a/ash/wm/activation_controller_unittest.cc b/ash/wm/activation_controller_unittest.cc
index 32e12b1cbf33a971f3e84febf125ef81b4cf6138..68ce9502aa68a51db80da4bf098d01e466315a38 100644
--- a/ash/wm/activation_controller_unittest.cc
+++ b/ash/wm/activation_controller_unittest.cc
@@ -191,7 +191,7 @@ TEST_F(ActivationControllerTest, ClickOnMenu) {
scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate(
&wd, 1, gfx::Rect(100, 100), NULL));
ad1.SetWindow(w1.get());
- EXPECT_TRUE(wm::IsActiveWindow(NULL));
+ EXPECT_EQ(NULL, wm::GetActiveWindow());
// Clicking on an activatable window activtes the window.
aura::test::EventGenerator generator(Shell::GetRootWindow(), w1.get());
@@ -259,8 +259,8 @@ TEST_F(ActivationControllerTest, NotActiveInLostActive) {
// Should not have gotten a OnLostActive yet.
EXPECT_EQ(0, ad1.lost_active_count());
- // ActivateWindow(NULL) should deactivate the active window.
- wm::ActivateWindow(NULL);
+ // Deactivate the active window.
+ wm::DeactivateWindow(w1.get());
EXPECT_FALSE(wm::IsActiveWindow(w1.get()));
EXPECT_EQ(1, ad1.lost_active_count());
EXPECT_FALSE(ad1.window_was_active());
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698