#include <gtest/gtest.h>
#include "libANGLE/GlobalMutex.h"
namespace
{
template <class ScopedGlobalLockT, class... Args>
void runBasicGlobalMutexTest(bool expectToPass, Args &&...args)
{ … }
TEST(GlobalMutexTest, ScopedGlobalMutexLock)
{ … }
TEST(GlobalMutexTest, ScopedOptionalGlobalMutexLockEnabled)
{ … }
TEST(GlobalMutexTest, ScopedOptionalGlobalMutexLockDisabled)
{ … }
#if defined(ANGLE_ENABLE_GLOBAL_MUTEX_RECURSION)
TEST(GlobalMutexTest, RecursiveScopedGlobalMutexLock)
{
egl::ScopedGlobalMutexLock lock;
egl::ScopedGlobalMutexLock lock2;
}
TEST(GlobalMutexTest, RecursiveScopedOptionalGlobalMutexLock)
{
egl::ScopedOptionalGlobalMutexLock lock(true);
egl::ScopedOptionalGlobalMutexLock lock2(true);
}
#endif
}