#include "chrome/browser/sync/test/integration/extensions_helper.h"
#include "base/check.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/updater/extension_updater.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
#include "chrome/browser/sync/test/integration/sync_extension_helper.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/manifest.h"
test;
namespace extensions_helper {
std::string CreateFakeExtensionName(int index) { … }
bool HasSameExtensions(int index1, int index2) { … }
bool HasSameExtensionsAsVerifier(int index) { … }
bool AllProfilesHaveSameExtensionsAsVerifier() { … }
bool AllProfilesHaveSameExtensions() { … }
std::string InstallExtension(Profile* profile, int index) { … }
std::string InstallExtensionForAllProfiles(int index) { … }
void UninstallExtension(Profile* profile, int index) { … }
std::vector<int> GetInstalledExtensions(Profile* profile) { … }
void EnableExtension(Profile* profile, int index) { … }
void DisableExtension(Profile* profile, int index) { … }
bool IsExtensionEnabled(Profile* profile, int index) { … }
void IncognitoEnableExtension(Profile* profile, int index) { … }
void IncognitoDisableExtension(Profile* profile, int index) { … }
bool IsIncognitoEnabled(Profile* profile, int index) { … }
void InstallExtensionsPendingForSync(Profile* profile) { … }
}
ExtensionsMatchChecker::ExtensionsMatchChecker()
: … { … }
ExtensionsMatchChecker::~ExtensionsMatchChecker() { … }
bool ExtensionsMatchChecker::IsExitConditionSatisfied(std::ostream* os) { … }
void ExtensionsMatchChecker::OnExtensionLoaded(
content::BrowserContext* context,
const extensions::Extension* extension) { … }
void ExtensionsMatchChecker::OnExtensionUnloaded(
content::BrowserContext* context,
const extensions::Extension* extension,
extensions::UnloadedExtensionReason reason) { … }
void ExtensionsMatchChecker::OnExtensionInstalled(
content::BrowserContext* browser_context,
const extensions::Extension* extension,
bool is_update) { … }
void ExtensionsMatchChecker::OnExtensionUninstalled(
content::BrowserContext* browser_context,
const extensions::Extension* extension,
extensions::UninstallReason reason) { … }
void ExtensionsMatchChecker::OnExtensionUpdatingStarted(Profile* profile) { … }