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

Unified Diff: src/base/platform/condition-variable-unittest.cc

Issue 520503004: Merge base unit tests into src to be in line with Chrome. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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: 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.

Powered by Google App Engine
This is Rietveld 408576698