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

Unified Diff: ipc/ipc_send_fds_test.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_perftests.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_send_fds_test.cc
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 75d1629c48abda511ded42638fdaa7812166eb42..f611e2e1360cc147ab01eeb2746095a30bd40e5a 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -59,13 +59,13 @@ class MyChannelDescriptorListener : public IPC::Listener {
VerifyAndCloseDescriptor(descriptor.fd, expected_inode_num_);
if (num_fds_received_ == kNumFDsToSend)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
return true;
}
virtual void OnChannelError() OVERRIDE {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
bool GotExpectedNumberOfDescriptors() const {
@@ -98,7 +98,7 @@ class IPCSendFdsTest : public IPCTestBase {
}
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -115,7 +115,7 @@ TEST_F(IPCSendFdsTest, DescriptorTest) {
int SendFdsClientCommon(const std::string& test_client_name,
ino_t expected_inode_num) {
- MessageLoopForIO main_message_loop;
+ base::MessageLoopForIO main_message_loop;
MyChannelDescriptorListener listener(expected_inode_num);
// Set up IPC channel.
@@ -125,7 +125,7 @@ int SendFdsClientCommon(const std::string& test_client_name,
CHECK(channel.Connect());
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Verify that the message loop was exited due to getting the correct number
// of descriptors, and not because of the channel closing unexpectedly.
« no previous file with comments | « ipc/ipc_perftests.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698