chromium/base/time/pr_time_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stdint.h>
#include <time.h>

#include "base/compiler_specific.h"
#include "base/third_party/nspr/prtime.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

Time;

namespace {

// time_t representation of 15th Oct 2007 12:45:00 PDT
PRTime comparison_time_pdt =;

// Time with positive tz offset and fractional seconds:
// 2013-07-08T11:28:12.441381+02:00
PRTime comparison_time_2 =1373275692441381);   // represented as GMT

// Specialized test fixture allowing time strings without timezones to be
// tested by comparing them to a known time in the local zone.
class PRTimeTest : public testing::Test {};

// Tests the PR_ParseTimeString nspr helper function for
// a variety of time strings.
TEST_F(PRTimeTest, ParseTimeTest1) {}

TEST_F(PRTimeTest, ParseTimeTest2) {}

TEST_F(PRTimeTest, ParseTimeTest3) {}

TEST_F(PRTimeTest, ParseTimeTest4) {}

TEST_F(PRTimeTest, ParseTimeTest5) {}

TEST_F(PRTimeTest, ParseTimeTest6) {}

TEST_F(PRTimeTest, ParseTimeTest7) {}

TEST_F(PRTimeTest, ParseTimeTest8) {}

TEST_F(PRTimeTest, ParseTimeTest9) {}

TEST_F(PRTimeTest, ParseTimeTest10) {}

TEST_F(PRTimeTest, ParseTimeTest11) {}

// hh:mm timezone offset.
TEST_F(PRTimeTest, ParseTimeTest12) {}

// hhmm timezone offset.
TEST_F(PRTimeTest, ParseTimeTest13) {}

// hh timezone offset.
TEST_F(PRTimeTest, ParseTimeTest14) {}

// 5 digits fractional second.
TEST_F(PRTimeTest, ParseTimeTest15) {}

// Fractional seconds, local timezone.
TEST_F(PRTimeTest, ParseTimeTest16) {}

// "Z" (=GMT) timezone.
TEST_F(PRTimeTest, ParseTimeTest17) {}

// "T" delimiter replaced by space.
TEST_F(PRTimeTest, ParseTimeTest18) {}

TEST_F(PRTimeTest, ParseTimeTestInvalid1) {}

TEST_F(PRTimeTest, ParseTimeTestInvalid2) {}

TEST_F(PRTimeTest, ParseTimeTestInvalid3) {}

// This test should not crash when compiled with Visual C++ 2005 (see
// http://crbug.com/4387).
TEST_F(PRTimeTest, ParseTimeTestOutOfRange) {}

TEST_F(PRTimeTest, ParseTimeTestNotNormalized1) {}

TEST_F(PRTimeTest, ParseTimeTestNotNormalized2) {}

}  // namespace