TimeFormat 214 ash/display/resolution_notification_controller.cc ui::TimeFormat::Simple( TimeFormat 215 ash/display/resolution_notification_controller.cc ui::TimeFormat::FORMAT_DURATION, ui::TimeFormat::LENGTH_LONG, TimeFormat 49 ash/system/chromeos/power/power_status.cc return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 50 ash/system/chromeos/power/power_status.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 54 ash/system/chromeos/power/power_status.cc return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 55 ash/system/chromeos/power/power_status.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 60 ash/system/chromeos/power/power_status.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 61 ash/system/chromeos/power/power_status.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 63 ash/system/chromeos/power/power_status.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 64 ash/system/chromeos/power/power_status.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 187 ash/system/chromeos/power/power_status_view.cc time_label_->SetText(ui::TimeFormat::Simple( TimeFormat 188 ash/system/chromeos/power/power_status_view.cc ui::TimeFormat::FORMAT_REMAINING, ui::TimeFormat::LENGTH_LONG, TimeFormat 180 ash/system/chromeos/power/power_status_view_unittest.cc EXPECT_EQ(ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING, TimeFormat 181 ash/system/chromeos/power/power_status_view_unittest.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 192 ash/system/chromeos/power/power_status_view_unittest.cc EXPECT_NE(ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING, TimeFormat 193 ash/system/chromeos/power/power_status_view_unittest.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 102 ash/system/chromeos/session/logout_confirmation_dialog.cc ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION, TimeFormat 103 ash/system/chromeos/session/logout_confirmation_dialog.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 72 ash/system/chromeos/session/tray_session_length_limit.cc ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION, TimeFormat 73 ash/system/chromeos/session/tray_session_length_limit.cc ui::TimeFormat::LENGTH_LONG, TimeFormat 55 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 85 base/i18n/time_formatting.cc return TimeFormat(&formatter, time); TimeFormat 94 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 100 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 106 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 112 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 118 base/i18n/time_formatting.cc return TimeFormat(formatter.get(), time); TimeFormat 340 chrome/browser/download/download_item_model.cc time_remaining = ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING, TimeFormat 341 chrome/browser/download/download_item_model.cc ui::TimeFormat::LENGTH_SHORT, TimeFormat 633 chrome/browser/download/download_item_model.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 634 chrome/browser/download/download_item_model.cc ui::TimeFormat::LENGTH_SHORT, time_remaining)); TimeFormat 641 chrome/browser/download/download_item_model.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING, TimeFormat 642 chrome/browser/download/download_item_model.cc ui::TimeFormat::LENGTH_SHORT, time_remaining)); TimeFormat 1572 chrome/browser/sync/profile_sync_service.cc return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED, TimeFormat 1573 chrome/browser/sync/profile_sync_service.cc ui::TimeFormat::LENGTH_SHORT, last_synced); TimeFormat 171 chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING, TimeFormat 172 chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc ui::TimeFormat::LENGTH_SHORT, time_remaining)); TimeFormat 127 chrome/browser/ui/webui/downloads_dom_handler.cc "since_string", ui::TimeFormat::RelativeDate( TimeFormat 198 chrome/browser/ui/webui/history_ui.cc base::string16 date_str = ui::TimeFormat::RelativeDate(visit_time, &midnight); TimeFormat 347 chrome/browser/ui/webui/history_ui.cc base::string16 date_str = ui::TimeFormat::RelativeDate(time, &midnight); TimeFormat 225 chrome/browser/ui/webui/ntp/foreign_session_handler.cc return ui::TimeFormat::Simple( TimeFormat 226 chrome/browser/ui/webui/ntp/foreign_session_handler.cc ui::TimeFormat::FORMAT_ELAPSED, ui::TimeFormat::LENGTH_SHORT, TimeFormat 412 chrome/browser/ui/webui/ntp/foreign_session_handler.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED, TimeFormat 413 chrome/browser/ui/webui/ntp/foreign_session_handler.cc ui::TimeFormat::LENGTH_SHORT, last_synced)); TimeFormat 191 chrome/browser/ui/webui/policy_ui.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 192 chrome/browser/ui/webui/policy_ui.cc ui::TimeFormat::LENGTH_SHORT, TimeFormat 196 chrome/browser/ui/webui/policy_ui.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED, TimeFormat 197 chrome/browser/ui/webui/policy_ui.cc ui::TimeFormat::LENGTH_SHORT, TimeFormat 38 chrome/common/time_format_browsertest.cc ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, TimeFormat 39 chrome/common/time_format_browsertest.cc ui::TimeFormat::LENGTH_SHORT, TimeFormat 270 ui/base/l10n/formatter.cc const Formatter* FormatterContainer::Get(TimeFormat::Format format, TimeFormat 271 ui/base/l10n/formatter.cc TimeFormat::Length length) const { TimeFormat 285 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_ELAPSED][TimeFormat::LENGTH_SHORT].reset( TimeFormat 290 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_ELAPSED][TimeFormat::LENGTH_LONG].reset(); TimeFormat 291 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_REMAINING][TimeFormat::LENGTH_SHORT].reset( TimeFormat 296 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_REMAINING][TimeFormat::LENGTH_LONG].reset( TimeFormat 301 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_DURATION][TimeFormat::LENGTH_SHORT].reset( TimeFormat 306 ui/base/l10n/formatter.cc formatter_[TimeFormat::FORMAT_DURATION][TimeFormat::LENGTH_LONG].reset( TimeFormat 320 ui/base/l10n/formatter.cc for (int format = 0; format < TimeFormat::FORMAT_COUNT; ++format) { TimeFormat 321 ui/base/l10n/formatter.cc for (int length = 0; length < TimeFormat::LENGTH_COUNT; ++length) { TimeFormat 87 ui/base/l10n/formatter.h const Formatter* Get(TimeFormat::Format format, TimeFormat 88 ui/base/l10n/formatter.h TimeFormat::Length length) const; TimeFormat 100 ui/base/l10n/formatter.h formatter_[TimeFormat::FORMAT_COUNT][TimeFormat::LENGTH_COUNT]; TimeFormat 106 ui/base/l10n/l10n_util_android.cc ui::TimeFormat::Simple( TimeFormat 107 ui/base/l10n/l10n_util_android.cc ui::TimeFormat::FORMAT_REMAINING, ui::TimeFormat::LENGTH_SHORT, TimeFormat 21 ui/base/l10n/time_format.cc using ui::TimeFormat; TimeFormat 29 ui/base/l10n/time_format.cc base::string16 TimeFormat::Simple(TimeFormat::Format format, TimeFormat 30 ui/base/l10n/time_format.cc TimeFormat::Length length, TimeFormat 36 ui/base/l10n/time_format.cc base::string16 TimeFormat::Detailed(TimeFormat::Format format, TimeFormat 37 ui/base/l10n/time_format.cc TimeFormat::Length length, TimeFormat 119 ui/base/l10n/time_format.cc base::string16 TimeFormat::RelativeDate( TimeFormat 20 ui/base/l10n/time_format.h class UI_BASE_EXPORT TimeFormat { TimeFormat 94 ui/base/l10n/time_format.h DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat); TimeFormat 79 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 sec"), TimeFormat::Simple( TimeFormat 80 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1s_)); TimeFormat 81 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 min"), TimeFormat::Simple( TimeFormat 82 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1m_)); TimeFormat 83 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Simple( TimeFormat 84 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1h_)); TimeFormat 85 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Simple( TimeFormat 86 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1d_)); TimeFormat 87 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 second"), TimeFormat::Simple( TimeFormat 88 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_1s_)); TimeFormat 89 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 minute"), TimeFormat::Simple( TimeFormat 90 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_1m_)); TimeFormat 91 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Simple( TimeFormat 92 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_1h_)); TimeFormat 93 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Simple( TimeFormat 94 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_1d_)); TimeFormat 95 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 sec left"), TimeFormat::Simple( TimeFormat 96 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_1s_)); TimeFormat 97 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 min left"), TimeFormat::Simple( TimeFormat 98 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_1m_)); TimeFormat 99 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour left"), TimeFormat::Simple( TimeFormat 100 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_1h_)); TimeFormat 101 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day left"), TimeFormat::Simple( TimeFormat 102 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_1d_)); TimeFormat 103 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 second left"), TimeFormat::Simple( TimeFormat 104 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_1s_)); TimeFormat 105 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 minute left"), TimeFormat::Simple( TimeFormat 106 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_1m_)); TimeFormat 107 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour left"), TimeFormat::Simple( TimeFormat 108 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_1h_)); TimeFormat 109 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day left"), TimeFormat::Simple( TimeFormat 110 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_1d_)); TimeFormat 111 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 sec ago"), TimeFormat::Simple( TimeFormat 112 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_1s_)); TimeFormat 113 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 min ago"), TimeFormat::Simple( TimeFormat 114 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_1m_)); TimeFormat 115 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour ago"), TimeFormat::Simple( TimeFormat 116 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_1h_)); TimeFormat 117 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day ago"), TimeFormat::Simple( TimeFormat 118 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_1d_)); TimeFormat 121 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 secs"), TimeFormat::Simple( TimeFormat 122 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_2s_)); TimeFormat 123 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 mins"), TimeFormat::Simple( TimeFormat 124 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_2m_)); TimeFormat 125 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours"), TimeFormat::Simple( TimeFormat 126 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_2h_)); TimeFormat 127 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days"), TimeFormat::Simple( TimeFormat 128 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_2d_)); TimeFormat 129 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 seconds"), TimeFormat::Simple( TimeFormat 130 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_2s_)); TimeFormat 131 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 minutes"), TimeFormat::Simple( TimeFormat 132 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_2m_)); TimeFormat 133 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours"), TimeFormat::Simple( TimeFormat 134 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_2h_)); TimeFormat 135 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days"), TimeFormat::Simple( TimeFormat 136 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, delta_2d_)); TimeFormat 137 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 secs left"), TimeFormat::Simple( TimeFormat 138 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_2s_)); TimeFormat 139 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 mins left"), TimeFormat::Simple( TimeFormat 140 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_2m_)); TimeFormat 141 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours left"), TimeFormat::Simple( TimeFormat 142 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_2h_)); TimeFormat 143 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days left"), TimeFormat::Simple( TimeFormat 144 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_SHORT, delta_2d_)); TimeFormat 145 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 seconds left"), TimeFormat::Simple( TimeFormat 146 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_2s_)); TimeFormat 147 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 minutes left"), TimeFormat::Simple( TimeFormat 148 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_2m_)); TimeFormat 149 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours left"), TimeFormat::Simple( TimeFormat 150 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_2h_)); TimeFormat 151 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days left"), TimeFormat::Simple( TimeFormat 152 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_REMAINING, TimeFormat::LENGTH_LONG, delta_2d_)); TimeFormat 153 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 secs ago"), TimeFormat::Simple( TimeFormat 154 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_2s_)); TimeFormat 155 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 mins ago"), TimeFormat::Simple( TimeFormat 156 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_2m_)); TimeFormat 157 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours ago"), TimeFormat::Simple( TimeFormat 158 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_2h_)); TimeFormat 159 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days ago"), TimeFormat::Simple( TimeFormat 160 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_ELAPSED, TimeFormat::LENGTH_SHORT, delta_2d_)); TimeFormat 163 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 minute 2 seconds"), TimeFormat::Detailed( TimeFormat 164 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_1m2s_)); TimeFormat 165 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 minutes 1 second"), TimeFormat::Detailed( TimeFormat 166 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_2m1s_)); TimeFormat 167 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour 2 minutes"), TimeFormat::Detailed( TimeFormat 168 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_1h2m_)); TimeFormat 169 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours 1 minute"), TimeFormat::Detailed( TimeFormat 170 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_2h1m_)); TimeFormat 171 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day 2 hours"), TimeFormat::Detailed( TimeFormat 172 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_1d2h_)); TimeFormat 173 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days 1 hour"), TimeFormat::Detailed( TimeFormat 174 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 3, delta_2d1h_)); TimeFormat 227 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("0 secs"), TimeFormat::Simple( TimeFormat 228 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_0s_)); TimeFormat 229 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("0 secs"), TimeFormat::Simple( TimeFormat 230 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_499ms_)); TimeFormat 231 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 sec"), TimeFormat::Simple( TimeFormat 232 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_500ms_)); TimeFormat 233 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 sec"), TimeFormat::Simple( TimeFormat 234 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1s499ms_)); TimeFormat 235 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 secs"), TimeFormat::Simple( TimeFormat 236 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1s500ms_)); TimeFormat 237 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("59 secs"), TimeFormat::Simple( TimeFormat 238 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_59s499ms_)); TimeFormat 239 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 min"), TimeFormat::Simple( TimeFormat 240 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_59s500ms_)); TimeFormat 241 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 min"), TimeFormat::Simple( TimeFormat 242 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, TimeFormat 244 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 mins"), TimeFormat::Simple( TimeFormat 245 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1m30s_)); TimeFormat 246 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("59 mins"), TimeFormat::Simple( TimeFormat 247 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, TimeFormat 249 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Simple( TimeFormat 250 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_59m30s_)); TimeFormat 251 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Simple( TimeFormat 252 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, TimeFormat 254 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 hours"), TimeFormat::Simple( TimeFormat 255 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1h30m_)); TimeFormat 256 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("23 hours"), TimeFormat::Simple( TimeFormat 257 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, TimeFormat 259 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Simple( TimeFormat 260 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_23h30m_)); TimeFormat 261 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Simple( TimeFormat 262 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, TimeFormat 264 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("2 days"), TimeFormat::Simple( TimeFormat 265 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1d12h_)); TimeFormat 268 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("59 seconds"), TimeFormat::Detailed( TimeFormat 269 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 100, TimeFormat 271 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 minute 0 seconds"), TimeFormat::Detailed( TimeFormat 272 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 2, TimeFormat 274 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 minute"), TimeFormat::Detailed( TimeFormat 275 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 1, TimeFormat 277 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("59 minutes 59 seconds"), TimeFormat::Detailed( TimeFormat 278 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 60, TimeFormat 280 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour 0 minutes"), TimeFormat::Detailed( TimeFormat 281 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 59, TimeFormat 283 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour 0 minutes"), TimeFormat::Detailed( TimeFormat 284 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 2, TimeFormat 286 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Detailed( TimeFormat 287 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 1, TimeFormat 289 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Detailed( TimeFormat 290 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 1, TimeFormat 292 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 hour 0 minutes"), TimeFormat::Detailed( TimeFormat 293 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 2, TimeFormat 295 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("23 hours 59 minutes"), TimeFormat::Detailed( TimeFormat 296 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 24, TimeFormat 298 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day 0 hours"), TimeFormat::Detailed( TimeFormat 299 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 23, TimeFormat 301 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day 0 hours"), TimeFormat::Detailed( TimeFormat 302 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 2, TimeFormat 304 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Detailed( TimeFormat 305 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 1, TimeFormat 307 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat::Detailed( TimeFormat 308 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 1, TimeFormat 310 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day 0 hours"), TimeFormat::Detailed( TimeFormat 311 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, 2, TimeFormat 313 ui/base/l10n/time_format_unittest.cc EXPECT_EQ(ASCIIToUTF16("1 day 0 hours"), TimeFormat::Detailed( TimeFormat 314 ui/base/l10n/time_format_unittest.cc TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_LONG, -1, TimeFormat 335 ui/base/l10n/time_format_unittest.cc base::string16 today_str = TimeFormat::RelativeDate(now, NULL); TimeFormat 339 ui/base/l10n/time_format_unittest.cc base::string16 yesterday_str = TimeFormat::RelativeDate(yesterday, NULL); TimeFormat 344 ui/base/l10n/time_format_unittest.cc TimeFormat::RelativeDate(two_days_ago, NULL); TimeFormat 348 ui/base/l10n/time_format_unittest.cc base::string16 a_week_ago_str = TimeFormat::RelativeDate(a_week_ago, NULL);