#include "extensions/renderer/native_extension_bindings_system_test_base.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "content/public/test/mock_render_thread.h"
#include "extensions/common/manifest.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "extensions/common/mojom/frame.mojom.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/common/utils/extension_utils.h"
#include "extensions/renderer/module_system.h"
#include "extensions/renderer/native_extension_bindings_system.h"
#include "extensions/renderer/script_context.h"
#include "extensions/renderer/script_context_set.h"
#include "extensions/renderer/test_extensions_renderer_client.h"
#include "extensions/renderer/test_v8_extension_configuration.h"
namespace extensions {
TestIPCMessageSender::TestIPCMessageSender() = default;
TestIPCMessageSender::~TestIPCMessageSender() = default;
void TestIPCMessageSender::SendRequestIPC(ScriptContext* context,
mojom::RequestParamsPtr params) { … }
NativeExtensionBindingsSystemUnittest::NativeExtensionBindingsSystemUnittest() { … }
NativeExtensionBindingsSystemUnittest::
~NativeExtensionBindingsSystemUnittest() { … }
v8::ExtensionConfiguration*
NativeExtensionBindingsSystemUnittest::GetV8ExtensionConfiguration() { … }
void NativeExtensionBindingsSystemUnittest::SetUp() { … }
void NativeExtensionBindingsSystemUnittest::TearDown() { … }
ScriptContext* NativeExtensionBindingsSystemUnittest::CreateScriptContext(
v8::Local<v8::Context> v8_context,
const Extension* extension,
mojom::ContextType context_type) { … }
void NativeExtensionBindingsSystemUnittest::OnWillDisposeContext(
v8::Local<v8::Context> context) { … }
std::unique_ptr<TestJSRunner::Scope>
NativeExtensionBindingsSystemUnittest::CreateTestJSRunner() { … }
void NativeExtensionBindingsSystemUnittest::RegisterExtension(
scoped_refptr<const Extension> extension) { … }
bool NativeExtensionBindingsSystemUnittest::UseStrictIPCMessageSender() { … }
ScriptContextSetIterable*
NativeExtensionBindingsSystemUnittest::GetScriptContextSet() { … }
}