blob: 3a57bddedeab25387d915422592a468b92cdd3c7 [file] [log] [blame]
[email protected]4cbafd32013-12-03 00:50:331// Copyright 2013 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
[email protected]4cbafd32013-12-03 00:50:335#include "base/bind.h"
6#include "base/test/launcher/unit_test_launcher.h"
amistry6de2ee4f2016-05-05 05:12:097#include "base/test/multiprocess_test.h"
amistryd4aa70d2016-06-23 07:52:378#include "base/test/test_io_thread.h"
[email protected]4cbafd32013-12-03 00:50:339#include "base/test/test_suite.h"
avi246998d82015-12-22 02:39:0410#include "build/build_config.h"
Ken Rockot8a7f35f2018-07-04 19:40:5611#include "mojo/core/embedder/embedder.h"
12#include "mojo/core/embedder/scoped_ipc_support.h"
[email protected]4cbafd32013-12-03 00:50:3313
[email protected]4cbafd32013-12-03 00:50:3314int main(int argc, char** argv) {
jam5ccf985d2015-12-11 02:23:2715 base::TestSuite test_suite(argc, argv);
Ken Rockot8a7f35f2018-07-04 19:40:5616 mojo::core::Init();
amistryd4aa70d2016-06-23 07:52:3717 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
Ken Rockot8a7f35f2018-07-04 19:40:5618 mojo::core::ScopedIPCSupport ipc_support(
rockote5180e0e2017-01-13 12:24:0019 test_io_thread.task_runner(),
Ken Rockot8a7f35f2018-07-04 19:40:5620 mojo::core::ScopedIPCSupport::ShutdownPolicy::CLEAN);
amistryd4aa70d2016-06-23 07:52:3721
jam5ccf985d2015-12-11 02:23:2722 return base::LaunchUnitTests(
23 argc, argv,
Matt Falkenhagenfb888f02019-11-21 00:30:0224 base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite)));
[email protected]4cbafd32013-12-03 00:50:3325}