[email protected] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 1 | // 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] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 5 | #include "base/bind.h" |
6 | #include "base/test/launcher/unit_test_launcher.h" | ||||
amistry | 6de2ee4f | 2016-05-05 05:12:09 | [diff] [blame] | 7 | #include "base/test/multiprocess_test.h" |
amistry | d4aa70d | 2016-06-23 07:52:37 | [diff] [blame] | 8 | #include "base/test/test_io_thread.h" |
[email protected] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 9 | #include "base/test/test_suite.h" |
avi | 246998d8 | 2015-12-22 02:39:04 | [diff] [blame] | 10 | #include "build/build_config.h" |
Ken Rockot | 8a7f35f | 2018-07-04 19:40:56 | [diff] [blame] | 11 | #include "mojo/core/embedder/embedder.h" |
12 | #include "mojo/core/embedder/scoped_ipc_support.h" | ||||
[email protected] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 13 | |
[email protected] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 14 | int main(int argc, char** argv) { |
jam | 5ccf985d | 2015-12-11 02:23:27 | [diff] [blame] | 15 | base::TestSuite test_suite(argc, argv); |
Ken Rockot | 8a7f35f | 2018-07-04 19:40:56 | [diff] [blame] | 16 | mojo::core::Init(); |
amistry | d4aa70d | 2016-06-23 07:52:37 | [diff] [blame] | 17 | base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
Ken Rockot | 8a7f35f | 2018-07-04 19:40:56 | [diff] [blame] | 18 | mojo::core::ScopedIPCSupport ipc_support( |
rockot | e5180e0e | 2017-01-13 12:24:00 | [diff] [blame] | 19 | test_io_thread.task_runner(), |
Ken Rockot | 8a7f35f | 2018-07-04 19:40:56 | [diff] [blame] | 20 | mojo::core::ScopedIPCSupport::ShutdownPolicy::CLEAN); |
amistry | d4aa70d | 2016-06-23 07:52:37 | [diff] [blame] | 21 | |
jam | 5ccf985d | 2015-12-11 02:23:27 | [diff] [blame] | 22 | return base::LaunchUnitTests( |
23 | argc, argv, | ||||
Matt Falkenhagen | fb888f0 | 2019-11-21 00:30:02 | [diff] [blame] | 24 | base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite))); |
[email protected] | 4cbafd3 | 2013-12-03 00:50:33 | [diff] [blame] | 25 | } |