Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: ipc/run_all_perftests.cc

Issue 2620633004: Remove mojo::edk::test::ScopedIPCSupport (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_mojo_perftest.cc ('k') | ipc/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Copied from mojo/edk/test/run_all_perftests.cc. 5 // Copied from mojo/edk/test/run_all_perftests.cc.
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/test/perf_test_suite.h" 8 #include "base/test/perf_test_suite.h"
9 #include "base/test/test_io_thread.h" 9 #include "base/test/test_io_thread.h"
10 #include "mojo/edk/embedder/embedder.h" 10 #include "mojo/edk/embedder/embedder.h"
11 #include "mojo/edk/test/scoped_ipc_support.h" 11 #include "mojo/edk/embedder/scoped_ipc_support.h"
12 #include "mojo/edk/test/test_support_impl.h" 12 #include "mojo/edk/test/test_support_impl.h"
13 13
14 int main(int argc, char** argv) { 14 int main(int argc, char** argv) {
15 base::PerfTestSuite test(argc, argv); 15 base::PerfTestSuite test(argc, argv);
16 16
17 mojo::edk::Init(); 17 mojo::edk::Init();
18 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); 18 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
19 mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); 19 mojo::edk::ScopedIPCSupport ipc_support(
20 test_io_thread.task_runner(),
21 mojo::edk::ScopedIPCSupport::ShutdownPolicy::CLEAN);
20 mojo::test::TestSupport::Init(new mojo::edk::test::TestSupportImpl()); 22 mojo::test::TestSupport::Init(new mojo::edk::test::TestSupportImpl());
21 23
22 return test.Run(); 24 return test.Run();
23 } 25 }
OLDNEW
« no previous file with comments | « ipc/ipc_mojo_perftest.cc ('k') | ipc/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698