#include "chrome/browser/sync/test/integration/extension_settings_helper.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/json/json_writer.h"
#include "base/synchronization/waitable_event.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/test/integration/extensions_helper.h"
#include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
#include "chrome/browser/sync/test/integration/sync_extension_helper.h"
#include "components/value_store/value_store.h"
#include "extensions/browser/api/storage/backend_task_runner.h"
#include "extensions/browser/api/storage/storage_frontend.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
ExtensionRegistry;
test;
namespace extension_settings_helper {
namespace {
std::string ToJson(base::ValueView value) { … }
void GetAllSettingsOnBackendSequence(base::Value::Dict* out,
base::WaitableEvent* signal,
value_store::ValueStore* storage) { … }
base::Value::Dict GetAllSettings(Profile* profile, const std::string& id) { … }
bool AreSettingsSame(Profile* expected_profile, Profile* actual_profile) { … }
void SetSettingsOnBackendSequence(const base::Value::Dict* settings,
base::WaitableEvent* signal,
value_store::ValueStore* storage) { … }
}
void SetExtensionSettings(Profile* profile,
const std::string& id,
const base::Value::Dict& settings) { … }
void SetExtensionSettingsForAllProfiles(const std::string& id,
const base::Value::Dict& settings) { … }
bool AllExtensionSettingsSameAsVerifier() { … }
}