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

Unified Diff: chrome/browser/policy/preg_parser_win_unittest.cc

Issue 14294008: Add UMA histograms for policy loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/policy/preg_parser_win_unittest.cc
diff --git a/chrome/browser/policy/preg_parser_win_unittest.cc b/chrome/browser/policy/preg_parser_win_unittest.cc
index 0f59f5f1aca62f85a61261301846e0c4792a378d..7323dff25d2f1002f4553de35e6981a7e1a2e9f5 100644
--- a/chrome/browser/policy/preg_parser_win_unittest.cc
+++ b/chrome/browser/policy/preg_parser_win_unittest.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/values.h"
+#include "chrome/browser/policy/policy_load_status.h"
#include "chrome/common/chrome_paths.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -35,8 +36,9 @@ TEST(PRegParserWinTest, TestParseFile) {
// Run the parser.
base::FilePath test_file(test_data_dir.AppendASCII("policy/registry.pol"));
+ PolicyLoadStatusSample status(-1, -1);
ASSERT_TRUE(preg_parser::ReadFile(
- test_file, L"SOFTWARE\\Policies\\Chromium", &dict));
+ test_file, L"SOFTWARE\\Policies\\Chromium", &dict, &status));
// Build the expected output dictionary.
base::DictionaryValue expected;

Powered by Google App Engine
This is Rietveld 408576698