#include "components/policy/core/common/local_test_policy_loader.h"
#include <map>
#include <string>
#include "base/containers/contains.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_loader_common.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/policy_service_impl.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
namespace {
const char kLevel[] = …;
const char kScope[] = …;
const char kSource[] = …;
const char kNamespace[] = …;
const char kName[] = …;
const char kValue[] = …;
const char kLocalTestId[] = …;
policy::PolicyMap GetPolicyMapWithEntry(base::Value::Dict* policy_dict) { … }
}
namespace policy {
LocalTestPolicyLoader::LocalTestPolicyLoader() = default;
LocalTestPolicyLoader::~LocalTestPolicyLoader() = default;
PolicyBundle LocalTestPolicyLoader::Load() { … }
void LocalTestPolicyLoader::SetPolicyListJson(
const std::string& policy_list_json) { … }
void LocalTestPolicyLoader::VerifyJsonContents(base::Value::Dict* policy_dict) { … }
void LocalTestPolicyLoader::ClearPolicies() { … }
void LocalTestPolicyLoader::SetUserAffiliated(bool affiliated) { … }
}