chromium/components/visited_url_ranking/public/test_support.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 <set>
#include <utility>
#include <vector>

#include "base/time/time.h"
#include "components/history/core/browser/history_types.h"
#include "components/visited_url_ranking/public/url_visit.h"
#include "url/gurl.h"

namespace visited_url_ranking {

VisitContextAnnotations;

history::AnnotatedVisit GenerateSampleAnnotatedVisit(
    history::VisitID visit_id,
    const std::u16string& page_title,
    const GURL& url,
    bool has_url_keyed_image,
    const std::string& originator_cache_guid,
    float visibility_score,
    const std::vector<history::VisitContentModelAnnotations::Category>&
        categories,
    const base::Time visit_time,
    const VisitContextAnnotations::BrowserType browser_type) {}

URLVisitAggregate CreateSampleURLVisitAggregate(const GURL& url,
                                                float visibility_score,
                                                base::Time time,
                                                std::set<Fetcher> fetchers) {}

}  // namespace visited_url_ranking