| OLD | NEW |
| 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/message_loop/message_loop.h" |
| 9 #include "base/process/process_metrics.h" | 10 #include "base/process/process_metrics.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 12 #include "base/test/perf_time_logger.h" | 13 #include "base/test/perf_time_logger.h" |
| 13 #include "base/test/test_io_thread.h" | 14 #include "base/test/test_io_thread.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "ipc/ipc_channel_mojo.h" | 17 #include "ipc/ipc_channel_mojo.h" |
| 17 #include "ipc/ipc_test.mojom.h" | 18 #include "ipc/ipc_test.mojom.h" |
| 18 #include "ipc/ipc_test_base.h" | 19 #include "ipc/ipc_test_base.h" |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 RunSingleThreadPostTaskPingPongServer(); | 773 RunSingleThreadPostTaskPingPongServer(); |
| 773 } | 774 } |
| 774 | 775 |
| 775 // Sends the same data as above without using PostTask to the same thread. | 776 // Sends the same data as above without using PostTask to the same thread. |
| 776 TEST_F(CallbackPerfTest, SingleThreadNoPostTaskPingPong) { | 777 TEST_F(CallbackPerfTest, SingleThreadNoPostTaskPingPong) { |
| 777 RunSingleThreadNoPostTaskPingPongServer(); | 778 RunSingleThreadNoPostTaskPingPongServer(); |
| 778 } | 779 } |
| 779 | 780 |
| 780 } // namespace | 781 } // namespace |
| 781 } // namespace IPC | 782 } // namespace IPC |
| OLD | NEW |