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

Unified Diff: ipc/ipc_test_base.h

Issue 488003003: Add ChannelProxy benchmark to ipc_perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved conflicts Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_test_base.h
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h
index ce3328ad1058d6544f88779e42bda308735fe645..0854a34a8b6325b782776ffaaf73303fc15f8f8b 100644
--- a/ipc/ipc_test_base.h
+++ b/ipc/ipc_test_base.h
@@ -16,7 +16,7 @@
#include "ipc/ipc_multiprocess_test.h"
namespace base {
-class MessageLoopForIO;
+class MessageLoop;
}
// A test fixture for multiprocess IPC tests. Such tests include a "client" side
@@ -35,6 +35,7 @@ class IPCTestBase : public base::MultiProcessTest {
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
+ virtual scoped_ptr<base::MessageLoop> CreateMessageLoop();
// Initializes the test to use the given client.
void Init(const std::string& test_client_name);
@@ -86,11 +87,11 @@ class IPCTestBase : public base::MultiProcessTest {
IPC::ChannelProxy* channel_proxy() { return channel_proxy_.get(); }
const base::ProcessHandle& client_process() const { return client_process_; }
- scoped_refptr<base::TaskRunner> io_thread_task_runner();
+ scoped_refptr<base::TaskRunner> task_runner();
private:
std::string test_client_name_;
- scoped_ptr<base::MessageLoopForIO> message_loop_;
+ scoped_ptr<base::MessageLoop> message_loop_;
scoped_ptr<IPC::Channel> channel_;
scoped_ptr<IPC::ChannelProxy> channel_proxy_;

Powered by Google App Engine
This is Rietveld 408576698