OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/preg_parser_win.h" | 5 #include "components/policy/core/common/preg_parser_win.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/policy/policy_load_status.h" | 13 #include "components/policy/core/common/policy_load_status.h" |
14 #include "components/policy/core/common/registry_dict_win.h" | 14 #include "components/policy/core/common/registry_dict_win.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 namespace preg_parser { | 18 namespace preg_parser { |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Check whether two RegistryDicts equal each other. | 21 // Check whether two RegistryDicts equal each other. |
22 testing::AssertionResult RegistryDictEquals(const RegistryDict& a, | 22 testing::AssertionResult RegistryDictEquals(const RegistryDict& a, |
23 const RegistryDict& b) { | 23 const RegistryDict& b) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 SetInteger(&expected, "ShowHomeButton", 1); | 110 SetInteger(&expected, "ShowHomeButton", 1); |
111 SetString(&expected, "Snowman", "\xE2\x98\x83"); | 111 SetString(&expected, "Snowman", "\xE2\x98\x83"); |
112 SetString(&expected, "Empty", ""); | 112 SetString(&expected, "Empty", ""); |
113 | 113 |
114 EXPECT_TRUE(RegistryDictEquals(dict, expected)); | 114 EXPECT_TRUE(RegistryDictEquals(dict, expected)); |
115 } | 115 } |
116 | 116 |
117 } // namespace | 117 } // namespace |
118 } // namespace preg_parser | 118 } // namespace preg_parser |
119 } // namespace policy | 119 } // namespace policy |
OLD | NEW |