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

Unified Diff: mojo/system/test_utils.cc

Issue 140403002: Mojo: Add the ability to hook up a channel to the embedder API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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 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
« 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