Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1469)

Side by Side Diff: base/time/time_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/time/pr_time_unittest.cc ('k') | base/time/time_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/time/pr_time_unittest.cc ('k') | base/time/time_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698