#include "validating_storage.h"
#include <libaddressinput/callback.h>
#include <libaddressinput/storage.h>
#include <cstddef>
#include <memory>
#include <string>
#include <gtest/gtest.h>
#include "fake_storage.h"
#define CHECKSUM …
#define DATA …
#define OLD_TIMESTAMP …
namespace {
BuildCallback;
FakeStorage;
Storage;
ValidatingStorage;
const char kKey[] = …;
const char kValidatedData[] = …;
const char kStaleWrappedData[] = …;
const char kEmptyData[] = …;
class ValidatingStorageTest : public testing::Test { … };
TEST_F(ValidatingStorageTest, GoodData) { … }
TEST_F(ValidatingStorageTest, EmptyData) { … }
TEST_F(ValidatingStorageTest, MissingKey) { … }
TEST_F(ValidatingStorageTest, GarbageData) { … }
TEST_F(ValidatingStorageTest, StaleData) { … }
}