chromium/components/history/core/browser/visit_annotations_database_unittest.cc

// Copyright 2021 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/history/core/browser/visit_annotations_database.h"
#include <string>
#include <vector>

#include "base/test/gtest_util.h"
#include "base/time/time.h"
#include "components/history/core/browser/history_types.h"
#include "components/history/core/browser/url_row.h"
#include "components/history/core/browser/visit_database.h"
#include "components/history/core/test/visit_annotations_test_utils.h"
#include "sql/database.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace history {

namespace {

ElementsAre;
UnorderedElementsAre;

VisitContextAnnotations MakeContextAnnotations(
    VisitContextAnnotations::OnVisitFields on_visit,
    bool omnibox_url_copied,
    bool is_existing_part_of_tab_group,
    bool is_placed_in_tab_group,
    bool is_existing_bookmark,
    bool is_new_bookmark,
    bool is_ntp_custom_link) {}

}  // namespace

class VisitAnnotationsDatabaseTest : public testing::Test,
                                     public VisitAnnotationsDatabase,
                                     public VisitDatabase {};

TEST_F(VisitAnnotationsDatabaseTest, AddContentAnnotationsForVisit) {}

TEST_F(VisitAnnotationsDatabaseTest,
       AddContextAnnotationsForVisit_GetAnnotatedVisit) {}

TEST_F(VisitAnnotationsDatabaseTest, UpdateContextAnnotationsForVisit) {}

TEST_F(VisitAnnotationsDatabaseTest, UpdateContentAnnotationsForVisit) {}

TEST_F(
    VisitAnnotationsDatabaseTest,
    AddClusters_GetCluster_GetClusterVisit_GetClusterKeywords_GetDuplicateClusterVisitIdsForClusterVisit) {}

TEST_F(VisitAnnotationsDatabaseTest, GetMostRecentClusterIds) {}

TEST_F(VisitAnnotationsDatabaseTest,
       GetVisitIdsInCluster_GetClusterIdContainingVisit) {}

TEST_F(VisitAnnotationsDatabaseTest,
       ReserveNextClusterId_AddVisitsToCluster_UpdateClusterTriggerability) {}

TEST_F(VisitAnnotationsDatabaseTest, GetClusterIdForSyncedDetails) {}

TEST_F(VisitAnnotationsDatabaseTest, DeleteAnnotationsForVisit) {}

TEST_F(VisitAnnotationsDatabaseTest, AddClusters_DeleteClusters) {}

TEST_F(VisitAnnotationsDatabaseTest, SerializeDataForCrossDeviceSync) {}

TEST_F(VisitAnnotationsDatabaseTest, DeserializeDataFromCrossDeviceSync) {}

TEST_F(VisitAnnotationsDatabaseTest, AddClusters_UpdateVisitsInteractionState) {}

}  // namespace history