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

Side by Side Diff: ipc/ipc_mojo_perftest.cc

Issue 2181493002: Return unique_ptrs from base::ProcessMetrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove os_resource_win.* Created 4 years, 4 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
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/run_loop.h" 10 #include "base/run_loop.h"
10 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "ipc/ipc_channel_mojo.h" 13 #include "ipc/ipc_channel_mojo.h"
13 #include "ipc/ipc_perftest_support.h" 14 #include "ipc/ipc_perftest_support.h"
14 #include "mojo/edk/embedder/embedder.h" 15 #include "mojo/edk/embedder/embedder.h"
15 #include "mojo/edk/embedder/platform_channel_pair.h" 16 #include "mojo/edk/embedder/platform_channel_pair.h"
16 #include "mojo/edk/test/multiprocess_test_helper.h" 17 #include "mojo/edk/test/multiprocess_test_helper.h"
17 #include "mojo/edk/test/scoped_ipc_support.h" 18 #include "mojo/edk/test/scoped_ipc_support.h"
18 19
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 base::Bind(&MojoPerfTestClient::Run, base::Unretained(&client))); 111 base::Bind(&MojoPerfTestClient::Run, base::Unretained(&client)));
111 112
112 base::RunLoop run_loop; 113 base::RunLoop run_loop;
113 run_loop.RunUntilIdle(); 114 run_loop.RunUntilIdle();
114 115
115 return rv; 116 return rv;
116 } 117 }
117 118
118 } // namespace 119 } // namespace
119 } // namespace IPC 120 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698