#include "extensions/browser/test_extension_registry_observer.h"
#include <memory>
#include "base/run_loop.h"
#include "extensions/common/extension_id.h"
namespace extensions {
class TestExtensionRegistryObserver::Waiter { … };
TestExtensionRegistryObserver::TestExtensionRegistryObserver(
ExtensionRegistry* registry)
: … { … }
TestExtensionRegistryObserver::TestExtensionRegistryObserver(
ExtensionRegistry* registry,
const ExtensionId& extension_id)
: … { … }
TestExtensionRegistryObserver::~TestExtensionRegistryObserver() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionUninstalled() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionUninstallationDenied() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionWillBeInstalled() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionInstalled() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionLoaded() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionUnloaded() { … }
scoped_refptr<const Extension>
TestExtensionRegistryObserver::WaitForExtensionReady() { … }
void TestExtensionRegistryObserver::OnExtensionWillBeInstalled(
content::BrowserContext* browser_context,
const Extension* extension,
bool is_update,
const std::string& old_name) { … }
void TestExtensionRegistryObserver::OnExtensionInstalled(
content::BrowserContext* browser_context,
const Extension* extension,
bool is_update) { … }
void TestExtensionRegistryObserver::OnExtensionUninstalled(
content::BrowserContext* browser_context,
const Extension* extension,
extensions::UninstallReason reason) { … }
void TestExtensionRegistryObserver::OnExtensionUninstallationDenied(
content::BrowserContext* browser_context,
const Extension* extension) { … }
void TestExtensionRegistryObserver::OnExtensionLoaded(
content::BrowserContext* browser_context,
const Extension* extension) { … }
void TestExtensionRegistryObserver::OnExtensionReady(
content::BrowserContext* browser_context,
const Extension* extension) { … }
void TestExtensionRegistryObserver::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionReason reason) { … }
scoped_refptr<const Extension> TestExtensionRegistryObserver::Wait(
std::unique_ptr<Waiter>* waiter) { … }
}