OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/registry_dict_win.h" | 5 #include "chrome/browser/policy/registry_dict_win.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/common/json_schema/json_schema_constants.h" | 8 #include "components/json_schema/json_schema_constants.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace schema = json_schema_constants; | 11 namespace schema = json_schema_constants; |
12 | 12 |
13 namespace policy { | 13 namespace policy { |
14 namespace { | 14 namespace { |
15 | 15 |
16 TEST(RegistryDictTest, SetAndGetValue) { | 16 TEST(RegistryDictTest, SetAndGetValue) { |
17 RegistryDict test_dict; | 17 RegistryDict test_dict; |
18 | 18 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 EXPECT_TRUE(base::Value::Equals(&int_value, test_dict.GetValue("one"))); | 233 EXPECT_TRUE(base::Value::Equals(&int_value, test_dict.GetValue("one"))); |
234 RegistryDict* actual_subdict = test_dict.GetKey("one"); | 234 RegistryDict* actual_subdict = test_dict.GetKey("one"); |
235 ASSERT_TRUE(actual_subdict); | 235 ASSERT_TRUE(actual_subdict); |
236 EXPECT_TRUE(base::Value::Equals(&string_value, | 236 EXPECT_TRUE(base::Value::Equals(&string_value, |
237 actual_subdict->GetValue("two"))); | 237 actual_subdict->GetValue("two"))); |
238 } | 238 } |
239 | 239 |
240 } // namespace | 240 } // namespace |
241 } // namespace policy | 241 } // namespace policy |
OLD | NEW |