summaryrefslogtreecommitdiffstats
path: root/mojo/system/test_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/system/test_utils.cc')
-rw-r--r--mojo/system/test_utils.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/mojo/system/test_utils.cc b/mojo/system/test_utils.cc
index 673b36e..8e9cbb8 100644
--- a/mojo/system/test_utils.cc
+++ b/mojo/system/test_utils.cc
@@ -31,20 +31,14 @@ void PostTaskAndWait(scoped_refptr<base::TaskRunner> task_runner,
event.Wait();
}
-// TestWithIOThreadBase --------------------------------------------------------
+// TestIOThread ----------------------------------------------------------------
-TestWithIOThreadBase::TestWithIOThreadBase() : io_thread_("io_thread") {
-}
-
-TestWithIOThreadBase::~TestWithIOThreadBase() {
-}
-
-void TestWithIOThreadBase::SetUp() {
+TestIOThread::TestIOThread() : io_thread_("test_io_thread") {
io_thread_.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
}
-void TestWithIOThreadBase::TearDown() {
+TestIOThread::~TestIOThread() {
io_thread_.Stop();
}