1*635a8641SAndroid Build Coastguard Worker // Copyright 2013 The Chromium Authors. All rights reserved. 2*635a8641SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*635a8641SAndroid Build Coastguard Worker // found in the LICENSE file. 4*635a8641SAndroid Build Coastguard Worker 5*635a8641SAndroid Build Coastguard Worker // Copied from mojo/core/test/run_all_perftests.cc. 6*635a8641SAndroid Build Coastguard Worker 7*635a8641SAndroid Build Coastguard Worker #include "base/command_line.h" 8*635a8641SAndroid Build Coastguard Worker #include "base/test/perf_test_suite.h" 9*635a8641SAndroid Build Coastguard Worker #include "base/test/test_io_thread.h" 10*635a8641SAndroid Build Coastguard Worker #include "mojo/core/embedder/embedder.h" 11*635a8641SAndroid Build Coastguard Worker #include "mojo/core/embedder/scoped_ipc_support.h" 12*635a8641SAndroid Build Coastguard Worker #include "mojo/core/test/test_support_impl.h" 13*635a8641SAndroid Build Coastguard Worker main(int argc,char ** argv)14*635a8641SAndroid Build Coastguard Workerint main(int argc, char** argv) { 15*635a8641SAndroid Build Coastguard Worker base::PerfTestSuite test(argc, argv); 16*635a8641SAndroid Build Coastguard Worker 17*635a8641SAndroid Build Coastguard Worker mojo::core::Init(); 18*635a8641SAndroid Build Coastguard Worker base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); 19*635a8641SAndroid Build Coastguard Worker mojo::core::ScopedIPCSupport ipc_support( 20*635a8641SAndroid Build Coastguard Worker test_io_thread.task_runner(), 21*635a8641SAndroid Build Coastguard Worker mojo::core::ScopedIPCSupport::ShutdownPolicy::CLEAN); 22*635a8641SAndroid Build Coastguard Worker mojo::test::TestSupport::Init(new mojo::core::test::TestSupportImpl()); 23*635a8641SAndroid Build Coastguard Worker 24*635a8641SAndroid Build Coastguard Worker return test.Run(); 25*635a8641SAndroid Build Coastguard Worker } 26