chromium/third_party/libaddressinput/src/cpp/test/validating_util_test.cc

// Copyright (C) 2013 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#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;

// The data being wrapped.
const char kUnwrappedData[] =;

// The timestamp for the wrapped data.
const time_t kTimestamp =;

// The checksum and data together.
const char kChecksummedData[] =;

// "Randomly" corrupted checksummed data. The "m" in "checksum" is capitalized.
const char kCorruptedChecksummedData[] =;

// The checksum in the middle of data.
const char kChecksumInMiddle[] =;

// The file as it is stored on disk.
const char kWrappedData[] =;

// "Randomly" corrupted file. The "p" in "timestamp" is capitalized.
const char kCorruptedWrappedData[] =;

// The timestamp in the middle of data.
const char kTimestampInMiddle[] =;

// A recent timestamp and data together.
const char kTimestampHalfMonthAgo[] =;

// A stale timestamp and data together.
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) {}

}  // namespace