#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 {
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) { … }
}
}