blob: 6c9d3ffa0f95e5d30d401c8c9fe71eebe55c370b (
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
38
39
40
41
42
|
// 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.
#ifndef UI_AURA_TEST_AURA_TEST_BASE_H_
#define UI_AURA_TEST_AURA_TEST_BASE_H_
#pragma once
#include "base/compiler_specific.h"
#include "base/basictypes.h"
#include "base/message_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace aura {
namespace test {
class TestDesktopDelegate;
// A base class for aura unit tests.
class AuraTestBase : public testing::Test {
public:
AuraTestBase();
virtual ~AuraTestBase();
TestDesktopDelegate* GetTestDesktopDelegate();
// testing::Test:
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
private:
MessageLoopForUI message_loop_;
bool setup_called_;
bool teardown_called_;
DISALLOW_COPY_AND_ASSIGN(AuraTestBase);
};
} // namespace test
} // namespace aura
#endif // UI_AURA_TEST_AURA_TEST_BASE_H_
|