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