#include "extensions/test/extension_background_page_waiter.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_host_test_helper.h"
#include "extensions/browser/lazy_context_id.h"
#include "extensions/browser/lazy_context_task_queue.h"
#include "extensions/browser/process_manager.h"
#include "extensions/common/manifest_handlers/background_info.h"
#include "extensions/common/manifest_handlers/incognito_info.h"
#include "extensions/common/mojom/view_type.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
ExtensionBackgroundPageWaiter::ExtensionBackgroundPageWaiter(
content::BrowserContext* browser_context,
const Extension& extension)
: … { … }
bool ExtensionBackgroundPageWaiter::CanWaitFor(const Extension& extension,
std::string& reason_out) { … }
ExtensionBackgroundPageWaiter::~ExtensionBackgroundPageWaiter() = default;
void ExtensionBackgroundPageWaiter::WaitForBackgroundInitialized() { … }
void ExtensionBackgroundPageWaiter::WaitForBackgroundWorkerInitialized() { … }
void ExtensionBackgroundPageWaiter::WaitForBackgroundPageInitialized() { … }
void ExtensionBackgroundPageWaiter::WaitForBackgroundOpen() { … }
void ExtensionBackgroundPageWaiter::WaitForBackgroundClosed() { … }
}