#include "components/history_embeddings/vector_database.h"
#include <atomic>
#include <memory>
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "base/timer/elapsed_timer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace history_embeddings {
namespace {
Embedding RandomEmbedding() { … }
Embedding DeterministicEmbedding(float value) { … }
}
TEST(HistoryEmbeddingsVectorDatabaseTest, Constructs) { … }
TEST(HistoryEmbeddingsVectorDatabaseTest, EmbeddingOperations) { … }
TEST(HistoryEmbeddingsVectorDatabaseTest, FindNearest) { … }
TEST(HistoryEmbeddingsVectorDatabaseTest, SearchCanBeHaltedEarly) { … }
TEST(HistoryEmbeddingsVectorDatabaseTest, TimeRangeNarrowsSearchResult) { … }
TEST(HistoryEmbeddingsVectorDatabaseTest, DISABLED_ManyVectorsAreFastEnough) { … }
}