OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/test/launcher/unit_test_launcher.h" | |
6 #include "base/test/test_suite.h" | |
7 #include "build/build_config.h" | |
8 #include "mojo/edk/embedder/embedder.h" | |
9 #include "services/shell/background/background_shell_main.h" | |
10 | |
11 #if defined(USE_OZONE) | |
12 #include "ui/ozone/public/ozone_platform.h" | |
13 #endif | |
14 | |
15 class MusGpuTestSuite : public base::TestSuite { | |
16 public: | |
17 MusGpuTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} | |
18 | |
19 private: | |
20 void Initialize() override { | |
21 base::TestSuite::Initialize(); | |
22 #if defined(USE_OZONE) | |
23 ui::OzonePlatform::InitializeForGPU(); | |
24 #endif | |
25 } | |
26 }; | |
27 | |
28 int MasterProcessMain(int argc, char** argv) { | |
29 MusGpuTestSuite test_suite(argc, argv); | |
30 mojo::edk::Init(); | |
31 return base::LaunchUnitTests( | |
32 argc, argv, | |
33 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); | |
34 } | |
OLD | NEW |