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

Unified Diff: components/policy/core/common/policy_loader_win_unittest.cc

Issue 1824743002: Drop non-user policy in ConfigDirPolicyLoader on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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: components/policy/core/common/policy_loader_win_unittest.cc
diff --git a/components/policy/core/common/policy_loader_win_unittest.cc b/components/policy/core/common/policy_loader_win_unittest.cc
index f03370928f425033d319a1fa17998ff930421e64..c79dbb6ddc24cb9864ee5c0579a03cc7ee43a7fc 100644
--- a/components/policy/core/common/policy_loader_win_unittest.cc
+++ b/components/policy/core/common/policy_loader_win_unittest.cc
@@ -39,6 +39,7 @@
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_map.h"
+#include "components/policy/core/common/policy_test_utils.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/core/common/preg_parser_win.h"
#include "components/policy/core/common/schema_map.h"
@@ -751,7 +752,12 @@ class PolicyLoaderWinTest : public PolicyTestBase,
gpo_list_provider_);
std::unique_ptr<PolicyBundle> loaded(
loader.InitialLoad(schema_registry_.schema_map()));
- return loaded->Equals(expected);
+ bool match = loaded->Equals(expected);
+ if (!match) {
+ LOG(ERROR) << "EXPECTED: " << expected;
+ LOG(ERROR) << "ACTUAL: " << *loaded.get();
+ }
+ return match;
}
void InstallRegistrySentinel() {
« no previous file with comments | « components/policy/core/common/configuration_policy_provider_test.cc ('k') | components/policy/core/common/policy_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698