Index: components/policy/core/common/config_dir_policy_loader_unittest.cc |
diff --git a/components/policy/core/common/config_dir_policy_loader_unittest.cc b/components/policy/core/common/config_dir_policy_loader_unittest.cc |
index 94b233d03c6c6782a1ef5abe0a51fa28250077fa..680621c1de610b7bea6bba7f2d110731814c5fe1 100644 |
--- a/components/policy/core/common/config_dir_policy_loader_unittest.cc |
+++ b/components/policy/core/common/config_dir_policy_loader_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "components/policy/core/common/configuration_policy_provider_test.h" |
#include "components/policy/core/common/policy_bundle.h" |
#include "components/policy/core/common/policy_map.h" |
+#include "components/policy/core/common/policy_types.h" |
namespace policy { |
@@ -68,7 +69,9 @@ class TestHarness : public PolicyProviderTestHarness { |
}; |
TestHarness::TestHarness() |
- : PolicyProviderTestHarness(POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE), |
+ : PolicyProviderTestHarness(POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_MACHINE, |
+ POLICY_SOURCE_PLATFORM), |
next_policy_file_index_(100) {} |
TestHarness::~TestHarness() {} |
@@ -225,7 +228,8 @@ TEST_F(ConfigDirPolicyLoaderTest, ReadPrefsMergePrefs) { |
ASSERT_TRUE(bundle.get()); |
PolicyBundle expected_bundle; |
expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) |
- .LoadFrom(&test_dict_foo, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER); |
+ .LoadFrom(&test_dict_foo, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
+ POLICY_SOURCE_PLATFORM); |
EXPECT_TRUE(bundle->Equals(expected_bundle)); |
} |