chromium/components/visited_url_ranking/internal/visited_url_ranking_service_impl_unittest.cc

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

#include "components/visited_url_ranking/internal/visited_url_ranking_service_impl.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/functional/callback.h"
#include "base/metrics/metrics_hashes.h"
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "components/segmentation_platform/public/result.h"
#include "components/segmentation_platform/public/testing/mock_database_client.h"
#include "components/segmentation_platform/public/testing/mock_segmentation_platform_service.h"
#include "components/segmentation_platform/public/trigger.h"
#include "components/url_deduplication/url_deduplication_helper.h"
#include "components/visited_url_ranking/public/fetch_options.h"
#include "components/visited_url_ranking/public/fetcher_config.h"
#include "components/visited_url_ranking/public/test_support.h"
#include "components/visited_url_ranking/public/url_visit.h"
#include "components/visited_url_ranking/public/url_visit_aggregates_transformer.h"
#include "components/visited_url_ranking/public/url_visit_util.h"
#include "components/visited_url_ranking/public/visited_url_ranking_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

HasTrainingLabel;
MockSegmentationPlatformService;
URLType;
ResultOption;
_;

namespace visited_url_ranking {

namespace {

const segmentation_platform::TrainingRequestId kTestRequestId =;

segmentation_platform::AnnotatedNumericResult CreateResult(float val) {}

}  // namespace

class MockURLVisitDataFetcher : public URLVisitDataFetcher {};

class MockURLVisitAggregatesTransformer : public URLVisitAggregatesTransformer {};

class VisitedURLRankingServiceImplTest : public testing::Test {};

TEST_F(VisitedURLRankingServiceImplTest, FetchURLVisitAggregates) {}

TEST_F(VisitedURLRankingServiceImplTest, FetchWhenHistoryIsNotAvailable) {}

TEST_F(VisitedURLRankingServiceImplTest,
       FetchURLVisitAggregatesWithTransforms) {}

TEST_F(VisitedURLRankingServiceImplTest,
       FetchURLVisitAggregatesWithMissingTransforms) {}

TEST_F(VisitedURLRankingServiceImplTest,
       FetchURLVisitAggregatesWithFailedTransforms) {}

TEST_F(VisitedURLRankingServiceImplTest, RankURLVisitAggregates) {}

TEST_F(VisitedURLRankingServiceImplTest, RecordAction) {}

TEST_F(VisitedURLRankingServiceImplTest, RecordActionTimeout) {}

TEST_F(VisitedURLRankingServiceImplTest, DecorateURLVisitAggregates) {}

}  // namespace visited_url_ranking