#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/wtf/atomic_operations.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace WTF {
class AtomicOperationsTest : public ::testing::Test { … };
template <size_t buffer_size, size_t alignment, typename CopyMethod>
void TestCopyImpl(CopyMethod copy) { … }
template <size_t buffer_size, size_t alignment>
void TestAtomicReadMemcpy() { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_UINT8T) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_UINT16T) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_UINT32T) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_UINT64T) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_17Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_34Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_68Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicReadMemcpy_127Bytes) { … }
template <size_t buffer_size, size_t alignment>
void TestAtomicWriteMemcpy() { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_UINT8T) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_UINT16T) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_UINT32T) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_UINT64T) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_17Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_34Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_68Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicWriteMemcpy_127Bytes) { … }
template <size_t buffer_size, size_t alignment>
void TestAtomicMemzero() { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_UINT8T) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_UINT16T) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_UINT32T) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_UINT64T) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_17Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_34Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_68Bytes) { … }
TEST_F(AtomicOperationsTest, AtomicMemzero_127Bytes) { … }
}