#include "components/policy/core/browser/policy_error_map.h"
#include "base/memory/raw_ptr.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"
namespace policy {
namespace {
constexpr char kPolicyWithError[] = …;
constexpr char kPolicyWithoutError[] = …;
}
class PolicyErrorMapTestResourceBundle : public ::testing::TestWithParam<bool> { … };
TEST_P(PolicyErrorMapTestResourceBundle, CheckForErrorsWithoutFatalErrors) { … }
TEST_P(PolicyErrorMapTestResourceBundle, CheckForErrorsWithFatalErrors) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(PolicyErrorMapTest, GetErrorMessages) { … }
TEST(PolicyErrorMapTest, GetErrorMessagesWithReplacement) { … }
TEST(PolicyErrorMapTest, GetErrorMessagesWithTwoReplacements) { … }
TEST(PolicyErrorMapTest, GetErrorMessagesWithThreeReplacements) { … }
TEST(PolicyErrorMapTest, GetErrorMessagesWithNonAsciiReplacement) { … }
TEST(PolicyErrorMapTest, GetErrorMessagesWithBadUnicodeReplacement) { … }
TEST(PolicyErrorMapTest, GetErrorsWithNonfatalError) { … }
TEST(PolicyErrorMapTest, GetErrorsWithFatalError) { … }
}