Index: src/base/platform/condition-variable-unittest.cc |
diff --git a/test/base-unittests/platform/condition-variable-unittest.cc b/src/base/platform/condition-variable-unittest.cc |
similarity index 96% |
rename from test/base-unittests/platform/condition-variable-unittest.cc |
rename to src/base/platform/condition-variable-unittest.cc |
index ea1efd0d5b926f2145512cd288c78ffb511200ac..9c2f9ef1c4498ed7fb90c007bd7ee5dcfcb2d18a 100644 |
--- a/test/base-unittests/platform/condition-variable-unittest.cc |
+++ b/src/base/platform/condition-variable-unittest.cc |
@@ -54,7 +54,7 @@ class ThreadWithMutexAndConditionVariable V8_FINAL : public Thread { |
Mutex mutex_; |
}; |
-} |
+} // namespace |
TEST(ConditionVariable, MultipleThreadsWithSeparateConditionVariables) { |
@@ -135,7 +135,7 @@ class ThreadWithSharedMutexAndConditionVariable V8_FINAL : public Thread { |
Mutex* mutex_; |
}; |
-} |
+} // namespace |
TEST(ConditionVariable, MultipleThreadsWithSharedSeparateConditionVariables) { |
@@ -263,7 +263,7 @@ class LoopIncrementThread V8_FINAL : public Thread { |
Mutex* mutex_; |
}; |
-} |
+} // namespace |
TEST(ConditionVariable, LoopIncrement) { |
@@ -275,10 +275,10 @@ TEST(ConditionVariable, LoopIncrement) { |
int counter = 0; |
// Setup the threads. |
- Thread** threads = new Thread*[thread_count]; |
+ Thread** threads = new Thread* [thread_count]; |
for (int n = 0; n < thread_count; ++n) { |
- threads[n] = new LoopIncrementThread( |
- n, &counter, limit, thread_count, &cv, &mutex); |
+ threads[n] = new LoopIncrementThread(n, &counter, limit, thread_count, |
+ &cv, &mutex); |
} |
// Start all threads. |