0

[fuchsia] Adds "fuchsia" to list of OS IDs in PolicyPrefMappingTest.

Handles the OS identifier "fuchsia" in the tests.

Bug: 1271639
Change-Id: I148ad33625df8410235726369ee03c764448af71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3403356
Reviewed-by: Pavol Marko <pmarko@chromium.org>
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/main@{#962123}
This commit is contained in:
Kevin Marshall
2022-01-21 22:50:28 +00:00
committed by Chromium LUCI CQ
parent 00d05a0406
commit 1011049b22
2 changed files with 3 additions and 0 deletions
components/policy/core/browser
docs/enterprise

@ -346,6 +346,8 @@ class PolicyTestCase {
const std::string os("mac");
#elif BUILDFLAG(IS_WIN)
const std::string os("win");
#elif BUILDFLAG(IS_FUCHSIA)
const std::string os("fuchsia");
#else
#error "Unknown platform"
#endif

@ -145,6 +145,7 @@ needs to have at least one test case. Valid values are:
- `chromeos_ash`
- `chromeos_lacros`
- `android`
- `fuchsia`
- `ios` (tested via separate [policy_test_cases.json](https://cs.chromium.org/chromium/src/ios/chrome/test/data/policy/policy_test_cases.json))
The boolean `official_only` field indicates whether this policy is only