| Index: mojo/system/test_utils.cc
|
| diff --git a/mojo/system/test_utils.cc b/mojo/system/test_utils.cc
|
| index 5c120a8b1f6a0af68cb5bda81adeb2578af690ff..673b36ee4304509a3a7f3cd4dbc6ee46b83d6e60 100644
|
| --- a/mojo/system/test_utils.cc
|
| +++ b/mojo/system/test_utils.cc
|
| @@ -31,6 +31,23 @@ void PostTaskAndWait(scoped_refptr<base::TaskRunner> task_runner,
|
| event.Wait();
|
| }
|
|
|
| +// TestWithIOThreadBase --------------------------------------------------------
|
| +
|
| +TestWithIOThreadBase::TestWithIOThreadBase() : io_thread_("io_thread") {
|
| +}
|
| +
|
| +TestWithIOThreadBase::~TestWithIOThreadBase() {
|
| +}
|
| +
|
| +void TestWithIOThreadBase::SetUp() {
|
| + io_thread_.StartWithOptions(
|
| + base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
|
| +}
|
| +
|
| +void TestWithIOThreadBase::TearDown() {
|
| + io_thread_.Stop();
|
| +}
|
| +
|
| } // namespace test
|
| } // namespace system
|
| } // namespace mojo
|
|
|