Home | History | Annotate | Download | only in test
      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 
      5 #include "base/command_line.h"
      6 #include "base/test/multiprocess_test.h"
      7 #include "base/test/perf_test_suite.h"
      8 #include "base/test/test_io_thread.h"
      9 #include "mojo/edk/embedder/embedder.h"
     10 #include "mojo/edk/embedder/scoped_ipc_support.h"
     11 #include "mojo/edk/test/multiprocess_test_helper.h"
     12 #include "mojo/edk/test/test_support_impl.h"
     13 #include "mojo/public/tests/test_support_private.h"
     14 
     15 int main(int argc, char** argv) {
     16   base::PerfTestSuite test(argc, argv);
     17 
     18   mojo::edk::Init();
     19   base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
     20   mojo::edk::ScopedIPCSupport ipc_support(
     21       test_io_thread.task_runner(),
     22       mojo::edk::ScopedIPCSupport::ShutdownPolicy::CLEAN);
     23   mojo::test::TestSupport::Init(new mojo::edk::test::TestSupportImpl());
     24 
     25   return test.Run();
     26 }
     27