#include <memory>
#include <utility>
#include "base/task/single_thread_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_initializer.h"
#include "third_party/blink/renderer/core/workers/worker_backing_thread.h"
#include "third_party/blink/renderer/core/workers/worker_backing_thread_startup_data.h"
#include "third_party/blink/renderer/platform/bindings/dom_wrapper_world.h"
#include "third_party/blink/renderer/platform/bindings/v8_per_isolate_data.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/hash_set.h"
namespace blink {
namespace {
std::pair<Persistent<HeapVector<Member<DOMWrapperWorld>>>, int32_t>
CollectInitialWorlds(v8::Isolate* isolate) { … }
auto NumberOfWorlds(v8::Isolate* isolate) { … }
}
TEST(DOMWrapperWorldTest, MainWorld) { … }
TEST(DOMWrapperWorldTest, IsolatedWorlds) { … }
TEST(DOMWrapperWorldTest, ExplicitDispose) { … }
namespace {
void WorkerThreadFunc(
WorkerBackingThread* thread,
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
CrossThreadOnceClosure quit_closure) { … }
}
TEST(DOMWrapperWorldTest, NonMainThreadWorlds) { … }
}