#include "validating_util.h"
#include <string>
#include <gtest/gtest.h>
#define ITOA_HELPER(i) …
#define ITOA(i) …
#define DATA …
#define TIMESTAMP …
#define TIMESTAMP_HALF_MONTH_AGO …
#define TIMESTAMP_TWO_MONTHS_AGO …
#define CHECKSUM …
namespace {
ValidatingUtil;
const char kUnwrappedData[] = …;
const time_t kTimestamp = …;
const char kChecksummedData[] = …;
const char kCorruptedChecksummedData[] = …;
const char kChecksumInMiddle[] = …;
const char kWrappedData[] = …;
const char kCorruptedWrappedData[] = …;
const char kTimestampInMiddle[] = …;
const char kTimestampHalfMonthAgo[] = …;
const char kTimestampTwoMonthsAgo[] = …;
TEST(ValidatingUtilTest, UnwrapChecksum_CorruptedData) { … }
TEST(ValidatingUtilTest, UnwrapChecksum_EmptyString) { … }
TEST(ValidatingUtilTest, UnwrapChecksum_GarbageData) { … }
TEST(ValidatingUtilTest, UnwrapChecksum_InMiddle) { … }
TEST(ValidatingUtilTest, UnwrapChecksum) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_CorruptedData) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_EmptyString) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_GarbageData) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_InMiddle) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_Recent) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp_Stale) { … }
TEST(ValidatingUtilTest, UnwrapTimestamp) { … }
TEST(ValidatingUtilTest, Wrap) { … }
TEST(ValidatingUtilTest, WrapUnwrapIt) { … }
}