| Index: mojo/edk/system/test/test_io_thread.cc
|
| diff --git a/mojo/edk/system/test/test_io_thread.cc b/mojo/edk/system/test/test_io_thread.cc
|
| index 9dcc873d5c5907ec536b9e972a5c4fe2cd70baa6..eaa218a9fa06707598ce8b204e02e4610e76cf06 100644
|
| --- a/mojo/edk/system/test/test_io_thread.cc
|
| +++ b/mojo/edk/system/test/test_io_thread.cc
|
| @@ -55,6 +55,11 @@ void TestIOThread::Stop() {
|
| io_thread_started_ = false;
|
| }
|
|
|
| +bool TestIOThread::IsCurrentAndRunning() const {
|
| + return base::MessageLoop::current() == io_thread_.message_loop() &&
|
| + io_thread_.message_loop()->is_running();
|
| +}
|
| +
|
| void TestIOThread::PostTask(const base::Closure& task) {
|
| io_task_runner_->PostTask(task);
|
| }
|
|
|