| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/managed_bookmarks_policy_handler.h" | 5 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "components/bookmarks/common/bookmark_pref_names.h" | 11 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 12 #include "components/policy/core/browser/configuration_policy_pref_store.h" | 12 #include "components/policy/core/browser/configuration_policy_pref_store.h" |
| 13 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" | 13 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" |
| 14 #include "components/policy/core/common/policy_map.h" | 14 #include "components/policy/core/common/policy_map.h" |
| 15 #include "components/policy/core/common/policy_types.h" | 15 #include "components/policy/core/common/policy_types.h" |
| 16 #include "components/policy/core/common/schema.h" | 16 #include "components/policy/core/common/schema.h" |
| 17 #include "policy/policy_constants.h" | 17 #include "components/policy/policy_constants.h" |
| 18 | 18 |
| 19 #if defined(ENABLE_EXTENSIONS) | 19 #if defined(ENABLE_EXTENSIONS) |
| 20 #include "extensions/common/value_builder.h" | 20 #include "extensions/common/value_builder.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace policy { | 23 namespace policy { |
| 24 | 24 |
| 25 class ManagedBookmarksPolicyHandlerTest | 25 class ManagedBookmarksPolicyHandlerTest |
| 26 : public ConfigurationPolicyPrefStoreTest { | 26 : public ConfigurationPolicyPrefStoreTest { |
| 27 void SetUp() override { | 27 void SetUp() override { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 .Append(extensions::DictionaryBuilder() | 260 .Append(extensions::DictionaryBuilder() |
| 261 .Set("name", "Google") | 261 .Set("name", "Google") |
| 262 .Set("url", "http://google.com/") | 262 .Set("url", "http://google.com/") |
| 263 .Build()) | 263 .Build()) |
| 264 .Build()); | 264 .Build()); |
| 265 EXPECT_TRUE(pref_value->Equals(expected.get())); | 265 EXPECT_TRUE(pref_value->Equals(expected.get())); |
| 266 } | 266 } |
| 267 #endif | 267 #endif |
| 268 | 268 |
| 269 } // namespace policy | 269 } // namespace policy |
| OLD | NEW |