chromium/components/power_bookmarks/core/bookmark_client_base_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <memory>
#include <set>
#include <string>

#include "base/containers/contains.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/uuid.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/power_bookmarks/core/bookmark_client_base.h"
#include "components/power_bookmarks/core/suggested_save_location_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace power_bookmarks {

namespace {

const base::TimeDelta kBackoffTime =;

class TestBookmarkClientImpl : public BookmarkClientBase {};

class MockSuggestionProvider : public SuggestedSaveLocationProvider {};

}  // namespace

// Tests for the bookmark client base.
class BookmarkClientBaseTest : public testing::Test {};

TEST_F(BookmarkClientBaseTest, SuggestedFolder) {}

TEST_F(BookmarkClientBaseTest, SuggestedFolder_Rejected) {}

// Make sure the rejection logic expires after a certain amount of time. E.g.
// moving a bookmark out of the suggested folder shouldn't be considered a
// rejection after some time passes, even if no other bookmarks are added.
TEST_F(BookmarkClientBaseTest, SuggestedFolder_RejectionCoolOff) {}

// The suggested folder should be allowed for "normal" saves if it was
// explicitly saved to in the past.
TEST_F(BookmarkClientBaseTest, SuggestedFolder_ExplicitSave) {}

TEST_F(BookmarkClientBaseTest, SaveLocationMetrics) {}

}  // namespace power_bookmarks