#include "chrome/browser/policy/chrome_extension_policy_migrator.h"
#include <string>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "extensions/common/hashed_extension_id.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
namespace policy {
namespace {
const char kExtensionId[] = …;
const char kOldPolicy1[] = …;
const char kOldPolicy2[] = …;
const char kOldPolicy3[] = …;
const char kOldPolicy4[] = …;
const char kOldPolicy5[] = …;
const char kNewPolicy1[] = …;
const char kNewPolicy2[] = …;
const char kNewPolicy3[] = …;
const char kNewPolicy4[] = …;
const int kOldValue1 = …;
const int kOldValue2 = …;
const int kOldValue3 = …;
const int kOldValue4 = …;
const int kOldValue5 = …;
const int kNewValue3 = …;
const int kNewValue4 = …;
void MultiplyByTwo(base::Value* val) { … }
void SetPolicy(PolicyMap* policy, const char* policy_name, base::Value value) { … }
class TestingPolicyMigrator : public ChromeExtensionPolicyMigrator { … };
}
TEST(ChromeExtensionPolicyMigratorTest, CopyPoliciesIfUnset) { … }
TEST(ChromeExtensionPolicyMigratorTest, DeprecatedWarnings) { … }
}