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

Unified Diff: mojo/edk/system/waiter_unittest.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
Index: mojo/edk/system/waiter_unittest.cc
diff --git a/mojo/edk/system/waiter_unittest.cc b/mojo/edk/system/waiter_unittest.cc
index 29bd5bcd48a4fc4d1188baf2ad4537483f313a94..7406e06bb0ead2d0fdc77f07af42253ece48db01 100644
--- a/mojo/edk/system/waiter_unittest.cc
+++ b/mojo/edk/system/waiter_unittest.cc
@@ -11,9 +11,9 @@
#include <stdint.h>
-#include "base/threading/simple_thread.h"
#include "mojo/edk/system/mutex.h"
#include "mojo/edk/system/test_utils.h"
+#include "mojo/edk/test/simple_test_thread.h"
#include "mojo/public/cpp/system/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -23,11 +23,10 @@ namespace {
const unsigned kPollTimeMs = 10;
-class WaitingThread : public base::SimpleThread {
+class WaitingThread : public mojo::test::SimpleTestThread {
public:
explicit WaitingThread(MojoDeadline deadline)
- : base::SimpleThread("waiting_thread"),
- deadline_(deadline),
+ : deadline_(deadline),
done_(false),
result_(MOJO_RESULT_UNKNOWN),
context_(static_cast<uint32_t>(-1)) {

Powered by Google App Engine
This is Rietveld 408576698