#include "chrome/renderer/extensions/api/extension_hooks_delegate.h"
#include <string_view>
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "content/public/common/content_constants.h"
#include "extensions/common/api/messaging/messaging_endpoint.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "extensions/common/mojom/message_port.mojom-shared.h"
#include "extensions/renderer/api/messaging/message_target.h"
#include "extensions/renderer/api/messaging/messaging_util.h"
#include "extensions/renderer/api/messaging/native_renderer_messaging_service.h"
#include "extensions/renderer/api/messaging/send_message_tester.h"
#include "extensions/renderer/api/runtime_hooks_delegate.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/native_extension_bindings_system.h"
#include "extensions/renderer/native_extension_bindings_system_test_base.h"
#include "extensions/renderer/script_context.h"
#include "extensions/renderer/script_context_set.h"
namespace extensions {
class ExtensionHooksDelegateTest
: public NativeExtensionBindingsSystemUnittest { … };
TEST_F(ExtensionHooksDelegateTest, MessagingSanityChecks) { … }
TEST_F(ExtensionHooksDelegateTest, SendRequestDisabled) { … }
TEST_F(ExtensionHooksDelegateTest, SendRequestChannelLeftOpenToReplyAsync) { … }
TEST_F(ExtensionHooksDelegateTest, RuntimeAliasesCorrupted) { … }
TEST_F(ExtensionHooksDelegateTest, GetURL) { … }
class ExtensionHooksDelegateMV3Test : public ExtensionHooksDelegateTest { … };
TEST_F(ExtensionHooksDelegateMV3Test, AliasesArentAvailableInMV3) { … }
}