| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 "ash/test/ash_test_suite.h" |
| 6 #include "base/bind.h" |
| 7 #include "base/command_line.h" |
| 8 #include "base/test/launcher/unit_test_launcher.h" |
| 9 #include "mojo/edk/embedder/embedder.h" |
| 10 #include "ui/gl/gl_switches.h" |
| 11 |
| 12 namespace { |
| 13 |
| 14 int RunHelper(ash::test::AshTestSuite* test_suite) { |
| 15 // In ash_perftests we want to use hardware GL. By adding this switch we can |
| 16 // set |use_software_gl| to false in gl_surface_test_support.cc. |
| 17 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 18 switches::kUseGpuInTests); |
| 19 return test_suite->Run(); |
| 20 } |
| 21 |
| 22 } // namespace |
| 23 |
| 24 int main(int argc, char** argv) { |
| 25 ash::test::AshTestSuite test_suite(argc, argv); |
| 26 |
| 27 mojo::edk::Init(); |
| 28 return base::LaunchUnitTestsSerially( |
| 29 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); |
| 30 } |
| OLD | NEW |