#include "base/threading/thread_local.h"
#include <optional>
#include "base/check_op.h"
#include "base/memory/raw_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/bind.h"
#include "base/test/gtest_util.h"
#include "base/threading/simple_thread.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
class SetTrueOnDestruction { … };
}
TEST(ThreadLocalTest, ThreadLocalOwnedPointerBasic) { … }
TEST(ThreadLocalTest, ThreadLocalOwnedPointerFreedOnThreadExit) { … }
TEST(ThreadLocalTest, ThreadLocalOwnedPointerCleansUpMainThreadOnDestruction) { … }
TEST(ThreadLocalTest, ThreadLocalOwnedPointerDeathIfDestroyedWithActiveThread) { … }
TEST(ThreadLocalTest, ThreadLocalOwnedPointerMultiThreadedAndStaticStorage) { … }
}