| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/time/time.h" | 5 #include "base/time/time.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <time.h> | 8 #include <time.h> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Specialized test fixture allowing time strings without timezones to be | 23 // Specialized test fixture allowing time strings without timezones to be |
| 24 // tested by comparing them to a known time in the local zone. | 24 // tested by comparing them to a known time in the local zone. |
| 25 // See also pr_time_unittests.cc | 25 // See also pr_time_unittests.cc |
| 26 class TimeTest : public testing::Test { | 26 class TimeTest : public testing::Test { |
| 27 protected: | 27 protected: |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 | 1115 |
| 1116 TEST(TimeTicksLogging, DoesNotMakeStreamBad) { | 1116 TEST(TimeTicksLogging, DoesNotMakeStreamBad) { |
| 1117 std::ostringstream oss; | 1117 std::ostringstream oss; |
| 1118 oss << TimeTicks(); | 1118 oss << TimeTicks(); |
| 1119 EXPECT_TRUE(oss.good()); | 1119 EXPECT_TRUE(oss.good()); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 } // namespace | 1122 } // namespace |
| 1123 | 1123 |
| 1124 } // namespace base | 1124 } // namespace base |
| OLD | NEW |