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

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

Issue 18063004: Move timing files into base/time, install forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « base/time/time_posix.cc ('k') | base/time/time_win.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.h" 5 #include "base/time/time.h"
6 6
7 #include <time.h> 7 #include <time.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using base::Time; 14 using base::Time;
15 using base::TimeDelta; 15 using base::TimeDelta;
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 exploded.minute = 0; 667 exploded.minute = 0;
668 exploded.second = 0; 668 exploded.second = 0;
669 exploded.millisecond = 0; 669 exploded.millisecond = 0;
670 Time t = Time::FromUTCExploded(exploded); 670 Time t = Time::FromUTCExploded(exploded);
671 // Unix 1970 epoch. 671 // Unix 1970 epoch.
672 EXPECT_EQ(GG_INT64_C(11644473600000000), t.ToInternalValue()); 672 EXPECT_EQ(GG_INT64_C(11644473600000000), t.ToInternalValue());
673 673
674 // We can't test 1601 epoch, since the system time functions on Linux 674 // We can't test 1601 epoch, since the system time functions on Linux
675 // only compute years starting from 1900. 675 // only compute years starting from 1900.
676 } 676 }
OLDNEW
« no previous file with comments | « base/time/time_posix.cc ('k') | base/time/time_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698