[go: nahoru, domu]

blob: a3e2a944c4e13649df402a19e623e64fa9ec22a1 [file] [log] [blame]
Avi Drissmanea1be232022-09-14 23:29:061// Copyright 2013 The Chromium Authors
sammce4d0abd2016-03-07 22:38:042// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Ken Rockot8a7f35f2018-07-04 19:40:565// Copied from mojo/core/test/run_all_perftests.cc.
sammce4d0abd2016-03-07 22:38:046
7#include "base/command_line.h"
8#include "base/test/perf_test_suite.h"
jamca86c9e2017-01-06 19:55:579#include "base/test/test_io_thread.h"
Robert Sesek72ba54c2018-12-11 20:05:3410#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"
13#include "mojo/core/test/test_support_impl.h"
sammce4d0abd2016-03-07 22:38:0414
15int main(int argc, char** argv) {
16 base::PerfTestSuite test(argc, argv);
17
Ken Rockot8a7f35f2018-07-04 19:40:5618 mojo::core::Init();
jamca86c9e2017-01-06 19:55:5719 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
Ken Rockot8a7f35f2018-07-04 19:40:5620 mojo::core::ScopedIPCSupport ipc_support(
rockote5180e0e2017-01-13 12:24:0021 test_io_thread.task_runner(),
Ken Rockot8a7f35f2018-07-04 19:40:5622 mojo::core::ScopedIPCSupport::ShutdownPolicy::CLEAN);
23 mojo::test::TestSupport::Init(new mojo::core::test::TestSupportImpl());
sammce4d0abd2016-03-07 22:38:0424
25 return test.Run();
26}