run_all_perftests.cc 902 B

1234567891011121314151617181920212223242526
  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. // Copied from mojo/core/test/run_all_perftests.cc.
  5. #include "base/command_line.h"
  6. #include "base/test/perf_test_suite.h"
  7. #include "base/test/test_io_thread.h"
  8. #include "build/build_config.h"
  9. #include "mojo/core/embedder/embedder.h"
  10. #include "mojo/core/embedder/scoped_ipc_support.h"
  11. #include "mojo/core/test/test_support_impl.h"
  12. int main(int argc, char** argv) {
  13. base::PerfTestSuite test(argc, argv);
  14. mojo::core::Init();
  15. base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
  16. mojo::core::ScopedIPCSupport ipc_support(
  17. test_io_thread.task_runner(),
  18. mojo::core::ScopedIPCSupport::ShutdownPolicy::CLEAN);
  19. mojo::test::TestSupport::Init(new mojo::core::test::TestSupportImpl());
  20. return test.Run();
  21. }