blob: 0a972111d4371a88ed2f798e3d38bab10ce63506 [file] [log] [blame]
jambaaeb812016-03-03 23:11:541// 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
mostynbea64f7c2016-04-03 16:03:445#include <memory>
6
jambaaeb812016-03-03 23:11:547#include "base/bind.h"
jambaaeb812016-03-03 23:11:548#include "base/test/launcher/unit_test_launcher.h"
9#include "base/test/test_io_thread.h"
10#include "base/test/test_suite.h"
11#include "build/build_config.h"
jambaaeb812016-03-03 23:11:5412
jame98cbe02016-03-04 01:49:2713#if !defined(OS_IOS)
Ken Rockotf03d97c952018-07-04 22:08:1014#include "mojo/core/embedder/embedder.h" // nogncheck
jame98cbe02016-03-04 01:49:2715#endif
16
jambaaeb812016-03-03 23:11:5417int main(int argc, char** argv) {
jambaaeb812016-03-03 23:11:5418 base::TestSuite test_suite(argc, argv);
19
jame98cbe02016-03-04 01:49:2720#if !defined(OS_IOS)
Ken Rockotf03d97c952018-07-04 22:08:1021 mojo::core::Init();
jame98cbe02016-03-04 01:49:2722#endif
jambaaeb812016-03-03 23:11:5423
24 return base::LaunchUnitTests(
25 argc, argv,
tzik91bae812018-03-13 09:13:4826 base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite)));
jambaaeb812016-03-03 23:11:5427}