chromium/components/history_embeddings/sql_database_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/history_embeddings/sql_database.h"

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/history_embeddings/proto/history_embeddings.pb.h"
#include "components/os_crypt/async/browser/test_utils.h"
#include "components/os_crypt/async/common/encryptor.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace history_embeddings {

namespace {

constexpr int64_t kEmbeddingsVersion =;
constexpr size_t kEmbeddingsSize =;

Embedding FakeEmbedding() {}

}  // namespace

class HistoryEmbeddingsSqlDatabaseTest : public testing::Test {};

TEST_F(HistoryEmbeddingsSqlDatabaseTest, WriteCloseAndThenReadPassages) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, WriteCloseAndThenReadUrlData) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, TimeRangeNarrowsSearchResult) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, InsertOrReplacePassages) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, IteratorMaySafelyOutliveDatabase) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, DeleteDataForUrlId) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, DeleteDataForVisitId) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, DeleteAllData) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, DeleteDataWithoutEmbedderMetadata) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, GetUrlData) {}

TEST_F(HistoryEmbeddingsSqlDatabaseTest, IterationSkipsAndReportsMismatches) {}

}  // namespace history_embeddings