| Index: chrome/browser/policy/managed_bookmarks_policy_handler_unittest.cc
|
| diff --git a/chrome/browser/policy/managed_bookmarks_policy_handler_unittest.cc b/chrome/browser/policy/managed_bookmarks_policy_handler_unittest.cc
|
| index 9bf6384b686ff4fcf32dc2ead4aad718d1877c39..bba50c8328c012a55f762267073a6e9b8464f9e5 100644
|
| --- a/chrome/browser/policy/managed_bookmarks_policy_handler_unittest.cc
|
| +++ b/chrome/browser/policy/managed_bookmarks_policy_handler_unittest.cc
|
| @@ -15,8 +15,9 @@
|
| #include "components/policy/core/common/policy_types.h"
|
| #include "components/policy/core/common/schema.h"
|
| #include "components/policy/policy_constants.h"
|
| +#include "extensions/features/features.h"
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| #include "extensions/common/value_builder.h"
|
| #endif
|
|
|
| @@ -31,7 +32,7 @@ class ManagedBookmarksPolicyHandlerTest
|
| }
|
| };
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| TEST_F(ManagedBookmarksPolicyHandlerTest, ApplyPolicySettings) {
|
| EXPECT_FALSE(store_->GetValue(bookmarks::prefs::kManagedBookmarks, NULL));
|
|
|
| @@ -135,9 +136,9 @@ TEST_F(ManagedBookmarksPolicyHandlerTest, ApplyPolicySettings) {
|
| .Build());
|
| EXPECT_TRUE(pref_value->Equals(expected.get()));
|
| }
|
| -#endif // defined(ENABLE_EXTENSIONS)
|
| +#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| TEST_F(ManagedBookmarksPolicyHandlerTest, ApplyPolicySettingsNoTitle) {
|
| EXPECT_FALSE(store_->GetValue(bookmarks::prefs::kManagedBookmarks, NULL));
|
|
|
| @@ -175,7 +176,7 @@ TEST_F(ManagedBookmarksPolicyHandlerTest, ApplyPolicySettingsNoTitle) {
|
| .Build());
|
| EXPECT_TRUE(pref_value->Equals(expected.get()));
|
| }
|
| -#endif // defined(ENABLE_EXTENSIONS)
|
| +#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
| TEST_F(ManagedBookmarksPolicyHandlerTest, WrongPolicyType) {
|
| PolicyMap policy;
|
| @@ -194,7 +195,7 @@ TEST_F(ManagedBookmarksPolicyHandlerTest, WrongPolicyType) {
|
| EXPECT_FALSE(store_->GetValue(bookmarks::prefs::kManagedBookmarks, NULL));
|
| }
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| TEST_F(ManagedBookmarksPolicyHandlerTest, UnknownKeys) {
|
| PolicyMap policy;
|
| policy.Set(key::kManagedBookmarks, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
|
| @@ -224,7 +225,7 @@ TEST_F(ManagedBookmarksPolicyHandlerTest, UnknownKeys) {
|
| }
|
| #endif
|
|
|
| -#if defined(ENABLE_EXTENSIONS)
|
| +#if BUILDFLAG(ENABLE_EXTENSIONS)
|
| TEST_F(ManagedBookmarksPolicyHandlerTest, BadBookmark) {
|
| PolicyMap policy;
|
| policy.Set(key::kManagedBookmarks, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
|
|
|