| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "base/bind.h" |
| #include "base/test/launcher/unit_test_launcher.h" |
| |
| #if defined(OS_CHROMEOS) |
| #include "ash/test/ash_test_suite.h" |
| #else |
| #include "components/exo/test/exo_test_suite_aura.h" |
| #endif |
| |
| #if !defined(OS_IOS) |
| #include "mojo/core/embedder/embedder.h" |
| #endif |
| |
| int main(int argc, char** argv) { |
| #if defined(OS_CHROMEOS) |
| ash::AshTestSuite test_suite(argc, argv); |
| #else |
| exo::test::ExoTestSuiteAura test_suite(argc, argv); |
| #endif |
| |
| #if !defined(OS_IOS) |
| mojo::core::Init(); |
| #endif |
| |
| return base::LaunchUnitTestsSerially( |
| argc, argv, |
| base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite))); |
| } |