Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / ui / aura / test / run_all_unittests.cc
blob345cc28024344577059e5eaeb6eeb76f1c754339
1 // Copyright (c) 2011 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 "base/bind.h"
6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_suite.h"
8 #include "ui/aura/env.h"
9 #include "ui/gl/gl_surface.h"
10 #include "ui/gl/test/gl_surface_test_support.h"
12 class AuraTestSuite : public base::TestSuite {
13 public:
14 AuraTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
16 protected:
17 void Initialize() override {
18 base::TestSuite::Initialize();
19 gfx::GLSurfaceTestSupport::InitializeOneOff();
20 aura::Env::CreateInstance(true);
23 void Shutdown() override {
24 aura::Env::DeleteInstance();
25 base::TestSuite::Shutdown();
28 private:
29 DISALLOW_COPY_AND_ASSIGN(AuraTestSuite);
32 int main(int argc, char** argv) {
33 AuraTestSuite test_suite(argc, argv);
35 return base::LaunchUnitTests(
36 argc,
37 argv,
38 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));