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

Unified Diff: mojo/edk/util/mutex_unittest.cc

Issue 1408003013: Reland "EDK: Move //mojo/edk/system/waitable_event* to edk/util." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/edk/util/cond_var_unittest.cc ('k') | mojo/edk/util/ref_counted_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/util/mutex_unittest.cc
diff --git a/mojo/edk/util/mutex_unittest.cc b/mojo/edk/util/mutex_unittest.cc
index 6730aba7ee586513a6187292b1b1b10f9188859a..7e8aff8e1e620c2debfc44850a181193c6f4f794 100644
--- a/mojo/edk/util/mutex_unittest.cc
+++ b/mojo/edk/util/mutex_unittest.cc
@@ -11,13 +11,15 @@
#include "mojo/edk/system/test/sleep.h"
#include "testing/gtest/include/gtest/gtest.h"
+using mojo::system::test::SleepMilliseconds;
+
namespace mojo {
namespace util {
namespace {
// Sleeps for a "very small" amount of time.
void EpsilonRandomSleep() {
- system::test::SleepMilliseconds(static_cast<unsigned>(rand()) % 20u);
+ SleepMilliseconds(static_cast<unsigned>(rand()) % 20u);
}
// Basic test to make sure that Lock()/Unlock()/TryLock() don't crash ----------
« no previous file with comments | « mojo/edk/util/cond_var_unittest.cc ('k') | mojo/edk/util/ref_counted_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698