| Index: ash/wm/window_animations_unittest.cc
|
| diff --git a/ash/wm/window_animations_unittest.cc b/ash/wm/window_animations_unittest.cc
|
| index 2e3cc133affc9da2f9b35b932e7c58a9f089c7ee..34e821b65e2e10839152c5f75925f6777ec67100 100644
|
| --- a/ash/wm/window_animations_unittest.cc
|
| +++ b/ash/wm/window_animations_unittest.cc
|
| @@ -34,8 +34,7 @@ class WindowAnimationsTest : public ash::test::AshTestBase {
|
| };
|
|
|
| TEST_F(WindowAnimationsTest, HideShowBrightnessGrayscaleAnimation) {
|
| - scoped_ptr<aura::Window> window(
|
| - aura::test::CreateTestWindowWithId(0, NULL));
|
| + scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
|
| window->Show();
|
| EXPECT_TRUE(window->layer()->visible());
|
|
|
| @@ -71,8 +70,7 @@ TEST_F(WindowAnimationsTest, HideShowBrightnessGrayscaleAnimation) {
|
| }
|
|
|
| TEST_F(WindowAnimationsTest, LayerTargetVisibility) {
|
| - scoped_ptr<aura::Window> window(
|
| - aura::test::CreateTestWindowWithId(0, NULL));
|
| + scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
|
|
|
| // Layer target visibility changes according to Show/Hide.
|
| window->Show();
|
| @@ -86,8 +84,7 @@ TEST_F(WindowAnimationsTest, LayerTargetVisibility) {
|
| TEST_F(WindowAnimationsTest, CrossFadeToBounds) {
|
| ui::LayerAnimator::set_disable_animations_for_test(false);
|
|
|
| - scoped_ptr<Window> window(
|
| - aura::test::CreateTestWindowWithId(0, NULL));
|
| + scoped_ptr<Window> window(CreateTestWindowInShellWithId(0));
|
| window->SetBounds(gfx::Rect(5, 10, 320, 240));
|
| window->Show();
|
|
|
|
|