OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura_shell/test/aura_shell_test_base.h" | 5 #include "ui/aura_shell/test/aura_shell_test_base.h" |
6 | 6 |
7 #include "ui/aura_shell/shell.h" | 7 #include "ui/aura_shell/shell.h" |
| 8 #include "ui/aura_shell/test/test_shell_delegate.h" |
8 | 9 |
9 namespace aura_shell { | 10 namespace aura_shell { |
10 namespace test { | 11 namespace test { |
11 | 12 |
12 AuraShellTestBase::AuraShellTestBase() { | 13 AuraShellTestBase::AuraShellTestBase() { |
13 } | 14 } |
14 | 15 |
15 AuraShellTestBase::~AuraShellTestBase() { | 16 AuraShellTestBase::~AuraShellTestBase() { |
16 } | 17 } |
17 | 18 |
18 void AuraShellTestBase::SetUp() { | 19 void AuraShellTestBase::SetUp() { |
19 aura::test::AuraTestBase::SetUp(); | 20 aura::test::AuraTestBase::SetUp(); |
20 | 21 |
21 // Creates Shell and hook with Desktop. | 22 // Creates Shell and hook with Desktop. |
22 aura_shell::Shell::CreateInstance(NULL); | 23 aura_shell::Shell::CreateInstance(new TestShellDelegate); |
23 } | 24 } |
24 | 25 |
25 void AuraShellTestBase::TearDown() { | 26 void AuraShellTestBase::TearDown() { |
26 // Flush the message loop to finish pending release tasks. | 27 // Flush the message loop to finish pending release tasks. |
27 RunAllPendingInMessageLoop(); | 28 RunAllPendingInMessageLoop(); |
28 | 29 |
29 // Tear down the shell. | 30 // Tear down the shell. |
30 aura_shell::Shell::DeleteInstance(); | 31 aura_shell::Shell::DeleteInstance(); |
31 | 32 |
32 aura::test::AuraTestBase::TearDown(); | 33 aura::test::AuraTestBase::TearDown(); |
33 } | 34 } |
34 | 35 |
35 } // namespace test | 36 } // namespace test |
36 } // namespace aura_shell | 37 } // namespace aura_shell |
OLD | NEW |