blob: 86d90b50756ec479a12334c81b486346e6c192a8 [file] [log] [blame]
// 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"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/test/ash_test_suite.h"
#else
#include "components/exo/test/exo_test_suite_aura.h"
#endif
#if !BUILDFLAG(IS_IOS)
#include "mojo/core/embedder/embedder.h"
#endif
int main(int argc, char** argv) {
#if BUILDFLAG(IS_CHROMEOS_ASH)
ash::AshTestSuite test_suite(argc, argv);
#else
exo::test::ExoTestSuiteAura test_suite(argc, argv);
#endif
#if !BUILDFLAG(IS_IOS)
mojo::core::Init();
#endif
return base::LaunchUnitTests(
argc, argv,
base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite)));
}