jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 1 | // 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 | |||||
mostynb | ea64f7c | 2016-04-03 16:03:44 | [diff] [blame] | 5 | #include <memory> |
6 | |||||
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 7 | #include "base/bind.h" |
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 8 | #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" | ||||
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 12 | |
jam | e98cbe0 | 2016-03-04 01:49:27 | [diff] [blame] | 13 | #if !defined(OS_IOS) |
Ken Rockot | f03d97c95 | 2018-07-04 22:08:10 | [diff] [blame] | 14 | #include "mojo/core/embedder/embedder.h" // nogncheck |
jam | e98cbe0 | 2016-03-04 01:49:27 | [diff] [blame] | 15 | #endif |
16 | |||||
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 17 | int main(int argc, char** argv) { |
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 18 | base::TestSuite test_suite(argc, argv); |
19 | |||||
jam | e98cbe0 | 2016-03-04 01:49:27 | [diff] [blame] | 20 | #if !defined(OS_IOS) |
Ken Rockot | f03d97c95 | 2018-07-04 22:08:10 | [diff] [blame] | 21 | mojo::core::Init(); |
jam | e98cbe0 | 2016-03-04 01:49:27 | [diff] [blame] | 22 | #endif |
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 23 | |
24 | return base::LaunchUnitTests( | ||||
25 | argc, argv, | ||||
tzik | 91bae81 | 2018-03-13 09:13:48 | [diff] [blame] | 26 | base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite))); |
jam | baaeb81 | 2016-03-03 23:11:54 | [diff] [blame] | 27 | } |