chromium/components/power_bookmarks/core/power_bookmark_service_unittest.cc

// Copyright 2022 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 "base/files/scoped_temp_dir.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/mock_callback.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/test/test_bookmark_client.h"
#include "components/power_bookmarks/common/power.h"
#include "components/power_bookmarks/common/power_bookmark_observer.h"
#include "components/power_bookmarks/common/power_overview.h"
#include "components/power_bookmarks/common/power_test_util.h"
#include "components/power_bookmarks/common/search_params.h"
#include "components/power_bookmarks/core/power_bookmark_data_provider.h"
#include "components/power_bookmarks/core/power_bookmark_features.h"
#include "components/power_bookmarks/core/power_bookmark_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
IsEmpty;
IsFalse;
IsTrue;
SizeIs;

namespace power_bookmarks {

// Tests for the power bookmark service.
// In-depth tests for the actual storage can be found in
// `power_bookmark_database_unittest`.
class PowerBookmarkServiceTest : public testing::Test {};

class MockDataProvider : public PowerBookmarkDataProvider {};

class MockObserver : public PowerBookmarkObserver {};

TEST_F(PowerBookmarkServiceTest, AddDataProvider) {}

TEST_F(PowerBookmarkServiceTest, RemoveDataProvider) {}

TEST_F(PowerBookmarkServiceTest, AddDataProviderNoNewBookmark) {}

TEST_F(PowerBookmarkServiceTest, Shutdown) {}

TEST_F(PowerBookmarkServiceTest, GetPowersForURL) {}

TEST_F(PowerBookmarkServiceTest, GetPowerOverviewsForType) {}

TEST_F(PowerBookmarkServiceTest, SearchPowers) {}

TEST_F(PowerBookmarkServiceTest, SearchPowersNoteText) {}

TEST_F(PowerBookmarkServiceTest, SearchPowerOverviews) {}

TEST_F(PowerBookmarkServiceTest, CreatePower) {}

TEST_F(PowerBookmarkServiceTest, ShouldNotCreatePowerIfPresent) {}

TEST_F(PowerBookmarkServiceTest, CreatePowerShouldNotUpdateTimeIfPresent) {}

TEST_F(PowerBookmarkServiceTest, UpdatePower) {}

TEST_F(PowerBookmarkServiceTest, ShouldNotUpdatePowerIfNotPresent) {}

TEST_F(PowerBookmarkServiceTest, DeletePower) {}

TEST_F(PowerBookmarkServiceTest, DeletePowersForURL) {}

TEST_F(PowerBookmarkServiceTest, ObserverCalled) {}
}  // namespace power_bookmarks