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

Unified Diff: mojo/edk/test/simple_test_thread.cc

Issue 1361143004: EDK: Add a mojo::test::SimpleTestThread (and use it). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
« mojo/edk/test/simple_test_thread.h ('K') | « mojo/edk/test/simple_test_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/simple_test_thread.cc
diff --git a/mojo/edk/test/simple_test_thread.cc b/mojo/edk/test/simple_test_thread.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6cf9f11a796f346987b1b6def1dd74eee7011304
--- /dev/null
+++ b/mojo/edk/test/simple_test_thread.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/edk/test/simple_test_thread.h"
+
+#include "base/logging.h"
+
+namespace mojo {
+namespace test {
+
+SimpleTestThread::SimpleTestThread() : thread_(this, "SimpleTestThread") {}
+
+SimpleTestThread::~SimpleTestThread() {}
+
+void SimpleTestThread::Start() {
+ thread_.Start();
+}
+
+void SimpleTestThread::Join() {
+ thread_.Join();
+}
+
+} // namespace test
+} // namespace mojo
« mojo/edk/test/simple_test_thread.h ('K') | « mojo/edk/test/simple_test_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698