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

Side by Side Diff: chrome/common/time_format_unittest.cc

Issue 2819063: Cleanup: Remove unneeded headers from app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: forward declare Created 10 years, 4 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 | « chrome/common/json_pref_store_unittest.cc ('k') | chrome/gpu/gpu_backing_store_glx.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <time.h> 5 #include <time.h>
6 6
7 #include "app/l10n_util.h"
8 #include "base/basictypes.h" 7 #include "base/basictypes.h"
9 #include "base/time.h" 8 #include "base/time.h"
10 #include "chrome/common/time_format.h" 9 #include "chrome/common/time_format.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 using base::Time; 12 using base::Time;
14 using base::TimeDelta; 13 using base::TimeDelta;
15 14
16 TEST(TimeFormat, RelativeDate) { 15 TEST(TimeFormat, RelativeDate) {
17 Time now = Time::Now(); 16 Time now = Time::Now();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 TestTimeFormats(one_sec + twohundred_millisecs, L"1 sec"); 59 TestTimeFormats(one_sec + twohundred_millisecs, L"1 sec");
61 TestTimeFormats(five_secs + twohundred_millisecs, L"5 secs"); 60 TestTimeFormats(five_secs + twohundred_millisecs, L"5 secs");
62 TestTimeFormats(one_min + five_secs, L"1 min"); 61 TestTimeFormats(one_min + five_secs, L"1 min");
63 TestTimeFormats(three_mins + twohundred_millisecs, L"3 mins"); 62 TestTimeFormats(three_mins + twohundred_millisecs, L"3 mins");
64 TestTimeFormats(one_hour + five_secs, L"1 hour"); 63 TestTimeFormats(one_hour + five_secs, L"1 hour");
65 TestTimeFormats(four_hours + five_secs, L"4 hours"); 64 TestTimeFormats(four_hours + five_secs, L"4 hours");
66 TestTimeFormats(one_day + five_secs, L"1 day"); 65 TestTimeFormats(one_day + five_secs, L"1 day");
67 TestTimeFormats(three_days, L"3 days"); 66 TestTimeFormats(three_days, L"3 days");
68 TestTimeFormats(three_days + four_hours, L"3 days"); 67 TestTimeFormats(three_days + four_hours, L"3 days");
69 } 68 }
OLDNEW
« no previous file with comments | « chrome/common/json_pref_store_unittest.cc ('k') | chrome/gpu/gpu_backing_store_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698