#include "content/renderer/worker/worker_thread_registry.h"
#include "base/memory/raw_ptr.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "content/public/renderer/worker_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
class WorkerThreadRegistryTest : public testing::Test { … };
class MockObserver : public WorkerThread::Observer { … };
TEST_F(WorkerThreadRegistryTest, BasicObservingAndWorkerId) { … }
TEST_F(WorkerThreadRegistryTest, CanRemoveSelfDuringNotification) { … }
TEST_F(WorkerThreadRegistryTest, TaskRunnerRemovedCorrectly) { … }
}