chromium/third_party/blink/renderer/platform/wtf/threading_primitives_test.cc

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

#include "third_party/blink/renderer/platform/wtf/threading_primitives.h"

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/threading/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace WTF {
namespace {

class LambdaThreadDelegate : public base::PlatformThread::Delegate {};

}  // namespace

TEST(RecursiveMutexTest, LockUnlock) {}

// NO_THREAD_SAFTEY_ANALYSIS: The thread checker (rightfully so) doesn't like
// recursive lock acquisition. Disable it in this test. We prefer to keep lock
// checking in the production code, to at least prevent some easy recursive
// locking cases from being added.
TEST(RecursiveMutexTest, LockUnlockRecursive) NO_THREAD_SAFETY_ANALYSIS {}

TEST(RecursiveMutexTest, LockUnlockThreads) NO_THREAD_SAFETY_ANALYSIS {}

}  // namespace WTF