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

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

Issue 2414663002: Fix log spew for "_comment..." policies. (Closed)
Patch Set: Rename EraseGeneric() to FilterErase(). Created 4 years, 2 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 d24aee7dec32ae3cc46a3e30cb015545ffd5e7af..ba24042f68ad3bd4db194791d8a73141655f55f5 100644
--- a/components/policy/core/common/policy_loader_win_unittest.cc
+++ b/components/policy/core/common/policy_loader_win_unittest.cc
@@ -39,7 +39,6 @@
#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"
@@ -753,12 +752,7 @@ class PolicyLoaderWinTest : public PolicyTestBase,
gpo_list_provider_);
std::unique_ptr<PolicyBundle> loaded(
loader.InitialLoad(schema_registry_.schema_map()));
- bool match = loaded->Equals(expected);
- if (!match) {
- LOG(ERROR) << "EXPECTED: " << expected;
- LOG(ERROR) << "ACTUAL: " << *loaded.get();
- }
- return match;
+ return loaded->Equals(expected);
}
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