#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "device/base/synchronization/one_writer_seqlock.h"
#include <stdlib.h>
#include <atomic>
#include "base/memory/raw_ptr.h"
#include "base/threading/platform_thread.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/base/dynamic_annotations.h"
namespace device {
struct TestData { … };
class BasicSeqLockTestThread : public base::PlatformThread::Delegate { … };
class MaxRetriesSeqLockTestThread : public base::PlatformThread::Delegate { … };
#if BUILDFLAG(IS_ANDROID)
#define MAYBE_ManyThreads …
#else
#define MAYBE_ManyThreads …
#endif
TEST(OneWriterSeqLockTest, MAYBE_ManyThreads) { … }
TEST(OneWriterSeqLockTest, MaxRetries) { … }
}