Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: chrome/browser/download/download_dir_policy_handler_unittest.cc

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another test. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698