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

Side by Side Diff: ui/aura_shell/test/aura_shell_test_base.cc

Issue 8817018: Implement cycle window forward/backward by keyboard shortcuts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/shell_unittest.cc ('k') | ui/aura_shell/test/test_shell_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « ui/aura_shell/shell_unittest.cc ('k') | ui/aura_shell/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698