#include "extensions/browser/extension_host_test_helper.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/run_loop.h"
#include "extensions/browser/extension_host.h"
namespace extensions {
ExtensionHostTestHelper::ExtensionHostTestHelper(
content::BrowserContext* browser_context)
: … { … }
ExtensionHostTestHelper::ExtensionHostTestHelper(
content::BrowserContext* browser_context,
ExtensionId extension_id)
: … { … }
ExtensionHostTestHelper::~ExtensionHostTestHelper() = default;
void ExtensionHostTestHelper::RestrictToType(mojom::ViewType type) { … }
void ExtensionHostTestHelper::RestrictToHost(const ExtensionHost* host) { … }
void ExtensionHostTestHelper::OnExtensionHostRenderProcessReady(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
void ExtensionHostTestHelper::OnExtensionHostDocumentElementAvailable(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
void ExtensionHostTestHelper::OnExtensionHostCompletedFirstLoad(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
void ExtensionHostTestHelper::OnExtensionHostDestroyed(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
void ExtensionHostTestHelper::OnExtensionHostRenderProcessGone(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
ExtensionHost* ExtensionHostTestHelper::WaitFor(HostEvent event) { … }
void ExtensionHostTestHelper::EventSeen(ExtensionHost* host, HostEvent event) { … }
}