Don't send touch move events within the slop region in Aura.
[chromium-blink-merge.git] / ui / compositor / test / test_suite.cc
blob18b4060b7e3091e319cedda4eb840a4183364737
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/compositor/test/test_suite.h"
7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h"
9 #include "ui/compositor/compositor.h"
10 #include "ui/compositor/compositor_switches.h"
11 #include "ui/gfx/gfx_paths.h"
12 #include "ui/gl/gl_surface.h"
14 #if defined(USE_X11)
15 #include <X11/Xlib.h>
16 #endif
18 #if defined(OS_WIN)
19 #include "ui/gfx/win/dpi.h"
20 #endif
22 namespace ui {
23 namespace test {
25 CompositorTestSuite::CompositorTestSuite(int argc, char** argv)
26 : TestSuite(argc, argv) {}
28 CompositorTestSuite::~CompositorTestSuite() {}
30 void CompositorTestSuite::Initialize() {
31 #if defined(USE_X11)
32 XInitThreads();
33 #endif
34 base::TestSuite::Initialize();
35 gfx::GLSurface::InitializeOneOffForTests();
37 gfx::RegisterPathProvider();
39 #if defined(OS_WIN)
40 gfx::InitDeviceScaleFactor(1.0f);
41 #endif
43 message_loop_.reset(new base::MessageLoopForUI);
46 void CompositorTestSuite::Shutdown() {
47 message_loop_.reset();
49 base::TestSuite::Shutdown();
52 } // namespace test
53 } // namespace ui