Index: chrome/browser/download/download_dir_policy_handler_unittest.cc |
diff --git a/chrome/browser/download/download_dir_policy_handler_unittest.cc b/chrome/browser/download/download_dir_policy_handler_unittest.cc |
index c0ad58692a79ed7c39738a091d4392f4adc424c7..d713ba7bcef37cdb1fff827a1acb41d247bbb0d8 100644 |
--- a/chrome/browser/download/download_dir_policy_handler_unittest.cc |
+++ b/chrome/browser/download/download_dir_policy_handler_unittest.cc |
@@ -72,6 +72,7 @@ TEST_F(DownloadDirPolicyHandlerTest, SetDownloadDirectory) { |
policy.Set(policy::key::kDownloadDirectory, |
policy::POLICY_LEVEL_MANDATORY, |
policy::POLICY_SCOPE_USER, |
+ policy::POLICY_SOURCE_CLOUD, |
new base::StringValue(std::string()), |
NULL); |
UpdateProviderPolicy(policy); |
@@ -95,6 +96,7 @@ TEST_F(DownloadDirPolicyHandlerTest, SetDownloadToDrive) { |
policy.Set(policy::key::kDownloadDirectory, |
policy::POLICY_LEVEL_MANDATORY, |
policy::POLICY_SCOPE_USER, |
+ policy::POLICY_SOURCE_CLOUD, |
new base::StringValue(kDriveNamePolicyVariableName), |
NULL); |
UpdateProviderPolicy(policy); |
@@ -121,6 +123,7 @@ TEST_F(DownloadDirPolicyHandlerTest, SetDownloadToDrive) { |
policy.Set(policy::key::kDownloadDirectory, |
policy::POLICY_LEVEL_MANDATORY, |
policy::POLICY_SCOPE_USER, |
+ policy::POLICY_SOURCE_CLOUD, |
new base::StringValue(kUserIDHash), |
NULL); |
UpdateProviderPolicy(policy); |
@@ -129,6 +132,7 @@ TEST_F(DownloadDirPolicyHandlerTest, SetDownloadToDrive) { |
policy.Set(policy::key::kDownloadDirectory, |
policy::POLICY_LEVEL_RECOMMENDED, |
policy::POLICY_SCOPE_USER, |
+ policy::POLICY_SOURCE_CLOUD, |
new base::StringValue(std::string(kDriveNamePolicyVariableName) + |
kRelativeToDriveRoot), |
NULL); |
@@ -147,6 +151,7 @@ TEST_F(DownloadDirPolicyHandlerTest, SetDownloadToDrive) { |
policy.Set(policy::key::kDownloadDirectory, |
policy::POLICY_LEVEL_RECOMMENDED, |
policy::POLICY_SCOPE_USER, |
+ policy::POLICY_SOURCE_CLOUD, |
new base::StringValue(kUserIDHash), |
NULL); |
UpdateProviderPolicy(policy); |