Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / compositor / test / test_suite.cc
blob0e7e16588db901ee817f8c53e99b958760efa342
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/test/gl_surface_test_support.h"
14 #if defined(OS_WIN)
15 #include "ui/gfx/win/dpi.h"
16 #endif
18 namespace ui {
19 namespace test {
21 CompositorTestSuite::CompositorTestSuite(int argc, char** argv)
22 : TestSuite(argc, argv) {}
24 CompositorTestSuite::~CompositorTestSuite() {}
26 void CompositorTestSuite::Initialize() {
27 base::TestSuite::Initialize();
28 gfx::GLSurfaceTestSupport::InitializeOneOff();
30 gfx::RegisterPathProvider();
32 #if defined(OS_WIN)
33 gfx::InitDeviceScaleFactor(1.0f);
34 #endif
36 message_loop_.reset(new base::MessageLoopForUI);
39 void CompositorTestSuite::Shutdown() {
40 message_loop_.reset();
42 base::TestSuite::Shutdown();
45 } // namespace test
46 } // namespace ui