| Index: media/audio/async_socket_io_handler_unittest.cc
|
| diff --git a/media/audio/async_socket_io_handler_unittest.cc b/media/audio/async_socket_io_handler_unittest.cc
|
| index 87481984f0b5ae3eabde9a858e6833483ea90b64..c7fa47bbb1074e81f6cb2447664f8b958b8fce25 100644
|
| --- a/media/audio/async_socket_io_handler_unittest.cc
|
| +++ b/media/audio/async_socket_io_handler_unittest.cc
|
| @@ -106,10 +106,10 @@ TEST(AsyncSocketIoHandlerTest, SynchronousReadWithMessageLoop) {
|
| // We've now verified that the read happened synchronously, but it's not
|
| // guaranteed that the callback has been issued since the callback will be
|
| // called asynchronously even though the read may have been done.
|
| - // So we call RunAllPending() to allow any event notifications or APC's on
|
| + // So we call RunUntilIdle() to allow any event notifications or APC's on
|
| // Windows, to execute before checking the count of how many callbacks we've
|
| // received.
|
| - MessageLoop::current()->RunAllPending();
|
| + MessageLoop::current()->RunUntilIdle();
|
| EXPECT_EQ(1, reader.callbacks_received());
|
| }
|
|
|
|
|