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

Side by Side Diff: ipc/ipc_mojo_perftest.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_bootstrap_unittest.cc ('k') | ipc/run_all_perftests.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stddef.h> 5 #include <stddef.h>
6 #include <memory> 6 #include <memory>
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/process/process_metrics.h" 9 #include "base/process/process_metrics.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/test/perf_time_logger.h" 12 #include "base/test/perf_time_logger.h"
13 #include "base/test/test_io_thread.h" 13 #include "base/test/test_io_thread.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "ipc/ipc_channel_mojo.h" 16 #include "ipc/ipc_channel_mojo.h"
17 #include "ipc/ipc_test.mojom.h" 17 #include "ipc/ipc_test.mojom.h"
18 #include "ipc/ipc_test_base.h" 18 #include "ipc/ipc_test_base.h"
19 #include "mojo/edk/embedder/embedder.h" 19 #include "mojo/edk/embedder/embedder.h"
20 #include "mojo/edk/embedder/platform_channel_pair.h" 20 #include "mojo/edk/embedder/platform_channel_pair.h"
21 #include "mojo/edk/test/mojo_test_base.h" 21 #include "mojo/edk/test/mojo_test_base.h"
22 #include "mojo/edk/test/multiprocess_test_helper.h" 22 #include "mojo/edk/test/multiprocess_test_helper.h"
23 #include "mojo/edk/test/scoped_ipc_support.h"
24 #include "mojo/public/cpp/bindings/binding.h" 23 #include "mojo/public/cpp/bindings/binding.h"
25 #include "mojo/public/cpp/system/message_pipe.h" 24 #include "mojo/public/cpp/system/message_pipe.h"
26 25
27 namespace IPC { 26 namespace IPC {
28 namespace { 27 namespace {
29 28
30 // This class simply collects stats about abstract "events" (each of which has a 29 // This class simply collects stats about abstract "events" (each of which has a
31 // start time and an end time). 30 // start time and an end time).
32 class EventTimeTracker { 31 class EventTimeTracker {
33 public: 32 public:
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 DISALLOW_COPY_AND_ASSIGN(CallbackPerfTest); 665 DISALLOW_COPY_AND_ASSIGN(CallbackPerfTest);
667 }; 666 };
668 667
669 // Sends the same data as above using PostTask instead of IPCs for comparison. 668 // Sends the same data as above using PostTask instead of IPCs for comparison.
670 TEST_F(CallbackPerfTest, PingPong) { 669 TEST_F(CallbackPerfTest, PingPong) {
671 RunPingPongServer(); 670 RunPingPongServer();
672 } 671 }
673 672
674 } // namespace 673 } // namespace
675 } // namespace IPC 674 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_mojo_bootstrap_unittest.cc ('k') | ipc/run_all_perftests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698