chromium/components/segmentation_platform/internal/database/signal_database_impl_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/segmentation_platform/internal/database/signal_database_impl.h"

#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "components/segmentation_platform/internal/database/signal_database.h"
#include "components/segmentation_platform/internal/proto/signal.pb.h"
#include "components/segmentation_platform/public/features.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace segmentation_platform {

bool IsWithinOneSecond(base::Time t1, base::Time t2) {}

void CheckVectorsEqual(const std::vector<SignalDatabase::Sample>& expected_list,
                       const std::vector<SignalDatabase::Sample>& actual_list) {}

void CheckVectorsEqual(
    const std::vector<SignalDatabase::DbEntry>& expected_list,
    const std::vector<SignalDatabase::DbEntry>& actual_list) {}

class SignalDatabaseImplTest : public testing::Test {};

TEST_F(SignalDatabaseImplTest, WriteSampleAndRead) {}

TEST_F(SignalDatabaseImplTest, WriteSampleAndReadWithPrefixMismatch) {}

TEST_F(SignalDatabaseImplTest, DeleteSamples) {}

TEST_F(SignalDatabaseImplTest, WriteMultipleSamplesAndRunCompaction) {}

}  // namespace segmentation_platform