#include "components/offline_pages/core/model/visuals_availability_task.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "components/offline_pages/core/model/model_task_test_base.h"
#include "components/offline_pages/core/model/store_visuals_task.h"
#include "components/offline_pages/core/offline_store_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
namespace {
OfflinePageVisuals TestVisuals() { … }
VisualsAvailableCallback;
class VisualsAvailabilityTaskTest : public ModelTaskTestBase { … };
TEST_F(VisualsAvailabilityTaskTest, CorrectlyFindsById_ThumbnailAndFavicon) { … }
TEST_F(VisualsAvailabilityTaskTest, CorrectlyFindsById_ThumbnailOnly) { … }
TEST_F(VisualsAvailabilityTaskTest, CorrectlyFindsById_FaviconOnly) { … }
TEST_F(VisualsAvailabilityTaskTest, RowDoesNotExist) { … }
TEST_F(VisualsAvailabilityTaskTest, DbConnectionIsNull) { … }
}
}