#include "components/bookmarks/managed/managed_bookmark_service.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/chrome_bookmark_client.h"
#include "chrome/browser/bookmarks/managed_bookmark_service_factory.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/test/base/testing_profile.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/bookmarks/test/mock_bookmark_model_observer.h"
#include "components/strings/grit/components_strings.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
BookmarkModel;
BookmarkNode;
ManagedBookmarkService;
Mock;
_;
TEST(ManagedBookmarkServiceNoPolicyTest, EmptyManagedNode) { … }
class ManagedBookmarkServiceTest : public testing::Test { … };
TEST_F(ManagedBookmarkServiceTest, LoadInitial) { … }
TEST_F(ManagedBookmarkServiceTest, SwapNodes) { … }
TEST_F(ManagedBookmarkServiceTest, RemoveNode) { … }
TEST_F(ManagedBookmarkServiceTest, CreateNewNodes) { … }
TEST_F(ManagedBookmarkServiceTest, RemoveAllUserBookmarks) { … }
TEST_F(ManagedBookmarkServiceTest, IsDescendantOfManagedNode) { … }
TEST_F(ManagedBookmarkServiceTest, RemoveAllDoesntRemoveManaged) { … }
TEST_F(ManagedBookmarkServiceTest, HasDescendantsOfManagedNode) { … }
TEST_F(ManagedBookmarkServiceTest, GetManagedBookmarksManager) { … }