chromium/components/history/core/browser/sync/history_sync_metadata_database_unittest.cc

// Copyright 2022 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/sync/history_sync_metadata_database.h"

#include "base/big_endian.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "components/history/core/browser/url_row.h"
#include "components/sync/model/metadata_batch.h"
#include "components/sync/protocol/data_type_state.pb.h"
#include "components/sync/protocol/entity_metadata.pb.h"
#include "sql/meta_table.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"

DataTypeState;
EntityMetadata;
EntityMetadataMap;
MetadataBatch;

namespace history {

namespace {

// Some arbitrary timestamps (which happen to map to 20 May 2022).
constexpr base::Time kVisitTime1 =;
constexpr base::Time kVisitTime2 =;

class HistorySyncMetadataDatabaseTest : public testing::Test {};

TEST_F(HistorySyncMetadataDatabaseTest,
       ConvertsBetweenStorageKeysAndTimestamps) {}

TEST_F(HistorySyncMetadataDatabaseTest, EmptyStateIsValid) {}

TEST_F(HistorySyncMetadataDatabaseTest, StoresAndReturnsMetadata) {}

TEST_F(HistorySyncMetadataDatabaseTest, DeletesSyncMetadata) {}

TEST_F(HistorySyncMetadataDatabaseTest, FailsToReadCorruptSyncMetadata) {}

TEST_F(HistorySyncMetadataDatabaseTest, FailsToReadCorruptDataTypeState) {}

}  // namespace

}  // namespace history