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

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 14383024: ipc: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_fuzzing_tests.cc
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index 1b06b7e2d929ec5221031f3ef77eaa2255ab3e60..c4c8019ec8c53f952c46adc95082e289f0372f67 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -175,7 +175,7 @@ class FuzzerServerListener : public SimpleListener {
--message_count_;
--pending_messages_;
if (0 == message_count_)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void ReplyMsgNotHandled(uint32 type_id) {
@@ -201,7 +201,7 @@ class FuzzerClientListener : public SimpleListener {
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE {
last_msg_ = new IPC::Message(msg);
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
return true;
}
@@ -231,7 +231,7 @@ class FuzzerClientListener : public SimpleListener {
private:
bool MsgHandlerInternal(uint32 type_id) {
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
if (NULL == last_msg_)
return false;
if (FUZZER_ROUTING_ID != last_msg_->routing_id())
@@ -245,14 +245,14 @@ class FuzzerClientListener : public SimpleListener {
// Runs the fuzzing server child mode. Returns when the preset number of
// messages have been received.
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(FuzzServerClient) {
- MessageLoopForIO main_message_loop;
+ base::MessageLoopForIO main_message_loop;
FuzzerServerListener listener;
IPC::Channel channel(IPCTestBase::GetChannelName("FuzzServerClient"),
IPC::Channel::MODE_CLIENT,
&listener);
CHECK(channel.Connect());
listener.Init(&channel);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
return 0;
}
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698