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

Unified Diff: ash/focus_cycler_unittest.cc

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renames for oshima Created 8 years, 1 month 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: ash/focus_cycler_unittest.cc
diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc
index 0c33b9f06d7a06b54c6a880f5ead9f417e7bd304..c4fd2d1986fb61f02bc2d63876e7200d40d923f6 100644
--- a/ash/focus_cycler_unittest.cc
+++ b/ash/focus_cycler_unittest.cc
@@ -22,7 +22,6 @@
namespace ash {
namespace test {
-using aura::test::CreateTestWindowWithId;
using aura::Window;
using internal::FocusCycler;
@@ -105,7 +104,7 @@ class FocusCyclerTest : public AshTestBase {
TEST_F(FocusCyclerTest, CycleFocusBrowserOnly) {
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
@@ -120,7 +119,7 @@ TEST_F(FocusCyclerTest, CycleFocusForward) {
InstallFocusCycleOnLauncher();
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
@@ -143,7 +142,7 @@ TEST_F(FocusCyclerTest, CycleFocusBackward) {
InstallFocusCycleOnLauncher();
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
@@ -166,7 +165,7 @@ TEST_F(FocusCyclerTest, CycleFocusForwardBackward) {
InstallFocusCycleOnLauncher();
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
@@ -230,7 +229,7 @@ TEST_F(FocusCyclerTest, Launcher_CycleFocusForward) {
launcher_widget()->Hide();
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
@@ -249,7 +248,7 @@ TEST_F(FocusCyclerTest, Launcher_CycleFocusBackwardInvisible) {
launcher_widget()->Hide();
// Create a single test window.
- scoped_ptr<Window> window0(CreateTestWindowWithId(0, NULL));
+ scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
wm::ActivateWindow(window0.get());
EXPECT_TRUE(wm::IsActiveWindow(window0.get()));

Powered by Google App Engine
This is Rietveld 408576698