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

Unified Diff: chrome/browser/extensions/api/socket/udp_socket_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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: chrome/browser/extensions/api/socket/udp_socket_unittest.cc
diff --git a/chrome/browser/extensions/api/socket/udp_socket_unittest.cc b/chrome/browser/extensions/api/socket/udp_socket_unittest.cc
index 0730d64d0679cc6cf2ee1706684b5cfd0266118d..6acddf3eadc38e2680d5b16f0c905ddce5c5ea82 100644
--- a/chrome/browser/extensions/api/socket/udp_socket_unittest.cc
+++ b/chrome/browser/extensions/api/socket/udp_socket_unittest.cc
@@ -39,7 +39,7 @@ static void OnSendCompleted(int result) {
}
TEST(UDPSocketUnitTest, TestUDPSocketRecvFrom) {
- MessageLoopForIO io_loop; // For RecvFrom to do its threaded work.
+ base::MessageLoopForIO io_loop; // For RecvFrom to do its threaded work.
UDPSocket socket("abcdefghijklmnopqrst");
// Confirm that we can call two RecvFroms in quick succession without
@@ -81,7 +81,7 @@ TEST(UDPSocketUnitTest, TestUDPMulticastLoopbackMode) {
}
static void QuitMessageLoop() {
- MessageLoopForIO::current()->QuitNow();
+ base::MessageLoopForIO::current()->QuitNow();
}
// Send a test multicast packet every second.
@@ -90,7 +90,7 @@ static void SendMulticastPacket(UDPSocket* src, int result) {
if (result == 0) {
scoped_refptr<net::IOBuffer> data = new net::WrappedIOBuffer(test_message);
src->Write(data, test_message_length, base::Bind(&OnSendCompleted));
- MessageLoopForIO::current()->PostDelayedTask(FROM_HERE,
+ base::MessageLoopForIO::current()->PostDelayedTask(FROM_HERE,
base::Bind(&SendMulticastPacket, src, result),
base::TimeDelta::FromSeconds(1));
} else {
@@ -112,7 +112,7 @@ TEST(UDPSocketUnitTest, TestUDPMulticastRecv) {
const int kPort = 9999;
const char* const kGroup = "237.132.100.17";
bool packet_received = false;
- MessageLoopForIO io_loop; // For Read to do its threaded work.
+ base::MessageLoopForIO io_loop; // For Read to do its threaded work.
UDPSocket dest("abcdefghijklmnopqrst");
UDPSocket src("abcdefghijklmnopqrst");

Powered by Google App Engine
This is Rietveld 408576698