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

Unified Diff: mojo/system/test_utils.cc

Issue 187383007: Mojo: Replace TestWithIOThreadBase with just a helper TestIOThread class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « mojo/system/test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/test_utils.cc
diff --git a/mojo/system/test_utils.cc b/mojo/system/test_utils.cc
index 673b36ee4304509a3a7f3cd4dbc6ee46b83d6e60..8e9cbb865a24dc6e74414a332bd13db0d821cd0a 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();
}
« no previous file with comments | « mojo/system/test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698