blob: a9eae0036824c9bbe9514ffe3bbff4966b86a97a (
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
43
44
|
// Copyright (c) 2012 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 ASH_TEST_ASH_TEST_BASE_H_
#define ASH_TEST_ASH_TEST_BASE_H_
#pragma once
#include "ash/shell.h"
#include "base/compiler_specific.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/test/aura_test_helper.h"
namespace ash {
namespace test {
class AshTestBase : public testing::Test {
public:
AshTestBase();
virtual ~AshTestBase();
MessageLoopForUI* message_loop() { return helper_.message_loop(); }
// testing::Test:
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
// Change the primary monitor's configuration to use |bounds|
// and |scale|.
void ChangeMonitorConfig(float scale, const gfx::Rect& bounds);
protected:
void RunAllPendingInMessageLoop();
private:
aura::test::AuraTestHelper helper_;
DISALLOW_COPY_AND_ASSIGN(AshTestBase);
};
} // namespace test
} // namespace ash
#endif // ASH_TEST_ASH_TEST_BASE_H_
|