chromium/device/base/synchronization/one_writer_seqlock_unittest.cc

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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 {

// Basic test to make sure that basic operation works correctly.

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) {}

}  // namespace device