Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: services/ui/common/run_all_service_tests.cc

Issue 2907663003: Ensure the services gpu tests run with ozone. (Closed)
Patch Set: fix deps Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
10 #if defined(USE_OZONE)
11 #include "ui/ozone/public/ozone_platform.h"
12 #endif
13
14 class MusGpuTestSuite : public base::TestSuite {
15 public:
16 MusGpuTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
17
18 private:
19 void Initialize() override {
20 base::TestSuite::Initialize();
21 #if defined(USE_OZONE)
22 ui::OzonePlatform::InitParams params;
23 params.single_process = true;
24 ui::OzonePlatform::InitializeForGPU(params);
25 #endif
26 }
27 };
28
29 int main(int argc, char** argv) {
30 MusGpuTestSuite test_suite(argc, argv);
31 mojo::edk::Init();
32 return base::LaunchUnitTests(
33 argc, argv,
34 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
35 }
OLDNEW
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698