Index: base/synchronization/one_writer_seqlock_unittest.cc |
diff --git a/content/common/one_writer_seqlock_unittest.cc b/base/synchronization/one_writer_seqlock_unittest.cc |
similarity index 90% |
rename from content/common/one_writer_seqlock_unittest.cc |
rename to base/synchronization/one_writer_seqlock_unittest.cc |
index 84d5156a7bd6fad617e015519637858593740067..9664b304e4deafa6a5459688e8edfdef67c0a134 100644 |
--- a/content/common/one_writer_seqlock_unittest.cc |
+++ b/base/synchronization/one_writer_seqlock_unittest.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/common/one_writer_seqlock.h" |
+#include "base/synchronization/one_writer_seqlock.h" |
#include <stdlib.h> |
@@ -25,10 +25,9 @@ class BasicSeqLockTestThread : public PlatformThread::Delegate { |
public: |
BasicSeqLockTestThread() {} |
- void Init( |
- content::OneWriterSeqLock* seqlock, |
- TestData* data, |
- base::subtle::Atomic32* ready) { |
+ void Init(base::OneWriterSeqLock* seqlock, |
+ TestData* data, |
+ base::subtle::Atomic32* ready) { |
seqlock_ = seqlock; |
data_ = data; |
ready_ = ready; |
@@ -54,7 +53,7 @@ class BasicSeqLockTestThread : public PlatformThread::Delegate { |
} |
private: |
- content::OneWriterSeqLock* seqlock_; |
+ base::OneWriterSeqLock* seqlock_; |
TestData* data_; |
base::AtomicRefCount* ready_; |
@@ -67,8 +66,8 @@ class BasicSeqLockTestThread : public PlatformThread::Delegate { |
#define MAYBE_ManyThreads ManyThreads |
#endif |
TEST(OneWriterSeqLockTest, MAYBE_ManyThreads) { |
- content::OneWriterSeqLock seqlock; |
- TestData data = { 0, 0, 0 }; |
+ base::OneWriterSeqLock seqlock; |
+ TestData data = {0, 0, 0}; |
base::AtomicRefCount ready = 0; |
ANNOTATE_BENIGN_RACE_SIZED(&data, sizeof(data), "Racey reads are discarded"); |