| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
| 8 #include "mojo/edk/embedder/embedder.h" | 8 #include "mojo/edk/embedder/embedder.h" |
| 9 #include "ui/gl/test/gl_surface_test_support.h" |
| 10 |
| 11 namespace { |
| 12 |
| 13 class UiArcTestSuite : public base::TestSuite { |
| 14 public: |
| 15 UiArcTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} |
| 16 |
| 17 protected: |
| 18 void Initialize() override { |
| 19 base::TestSuite::Initialize(); |
| 20 gl::GLSurfaceTestSupport::InitializeOneOff(); |
| 21 } |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(UiArcTestSuite); |
| 25 }; |
| 26 |
| 27 } // namespace |
| 9 | 28 |
| 10 int main(int argc, char** argv) { | 29 int main(int argc, char** argv) { |
| 11 base::TestSuite test_suite(argc, argv); | 30 UiArcTestSuite test_suite(argc, argv); |
| 12 | 31 |
| 13 mojo::edk::Init(); | 32 mojo::edk::Init(); |
| 14 return base::LaunchUnitTests( | 33 return base::LaunchUnitTests( |
| 15 argc, argv, | 34 argc, argv, |
| 16 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); | 35 base::Bind(&UiArcTestSuite::Run, base::Unretained(&test_suite))); |
| 17 } | 36 } |
| OLD | NEW |