#include <limits.h>
#include "src/base/atomic-utils.h"
#include "src/base/platform/platform.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace base {
namespace {
enum TestFlag : base::AtomicWord { … };
}
TEST(AtomicValue, Initial) { … }
TEST(AtomicValue, SetValue) { … }
TEST(AtomicValue, WithVoidStar) { … }
TEST(AsAtomic8, CompareAndSwap_Sequential) { … }
namespace {
class ByteIncrementingThread final : public Thread { … };
}
TEST(AsAtomic8, CompareAndSwap_Concurrent) { … }
TEST(AsAtomicWord, SetBits_Sequential) { … }
namespace {
class BitSettingThread final : public Thread { … };
}
TEST(AsAtomicWord, SetBits_Concurrent) { … }
}
}