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

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

Issue 2481753002: Push preg_parser and registry_dict changes upstream (Closed)
Patch Set: Minor formatting fixes Created 4 years, 1 month 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
« no previous file with comments | « components/policy/core/common/preg_parser.cc ('k') | components/policy/core/common/preg_parser_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/preg_parser_unittest.cc
diff --git a/components/policy/core/common/preg_parser_win_unittest.cc b/components/policy/core/common/preg_parser_unittest.cc
similarity index 93%
rename from components/policy/core/common/preg_parser_win_unittest.cc
rename to components/policy/core/common/preg_parser_unittest.cc
index 354e3e66eca969bd67e587541939f582a3726dc3..153f75ae9273bf51a95c827d85ee71c07f7b1231 100644
--- a/components/policy/core/common/preg_parser_win_unittest.cc
+++ b/components/policy/core/common/preg_parser_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/policy/core/common/preg_parser_win.h"
+#include "components/policy/core/common/preg_parser.h"
#include <utility>
@@ -12,9 +12,10 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/path_service.h"
+#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/policy/core/common/policy_load_status.h"
-#include "components/policy/core/common/registry_dict_win.h"
+#include "components/policy/core/common/registry_dict.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace policy {
@@ -70,7 +71,7 @@ void SetString(RegistryDict* dict,
base::WrapUnique<base::Value>(new base::StringValue(value)));
}
-TEST(PRegParserWinTest, TestParseFile) {
+TEST(PRegParserTest, TestParseFile) {
base::FilePath test_data_dir;
ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_data_dir));
@@ -95,7 +96,8 @@ TEST(PRegParserWinTest, TestParseFile) {
test_data_dir.AppendASCII("chrome/test/data/policy/registry.pol"));
PolicyLoadStatusSample status;
ASSERT_TRUE(preg_parser::ReadFile(
- test_file, L"SOFTWARE\\Policies\\Chromium", &dict, &status));
+ test_file, base::ASCIIToUTF16("SOFTWARE\\Policies\\Chromium"),
+ &dict, &status));
// Build the expected output dictionary.
RegistryDict expected;
« no previous file with comments | « components/policy/core/common/preg_parser.cc ('k') | components/policy/core/common/preg_parser_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698