/external/chromium_org/chrome/browser/history/ |
D | visit_database_unittest.cc | 30 a.visit_time == b.visit_time && in IsVisitInfoEqual() 79 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in TEST_F() 85 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in TEST_F() 148 modification.visit_time = Time::Now() + TimeDelta::FromDays(1); in TEST_F() 178 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in GetTestVisitRows() 188 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in GetTestVisitRows() 197 visit_info1.visit_time + TimeDelta::FromSeconds(3), visit_info3.visit_id, in GetTestVisitRows() 206 visit_info1.visit_time + TimeDelta::FromSeconds(4), visit_info4.visit_id, in GetTestVisitRows() 217 visit_info2.visit_time + TimeDelta::FromDays(1), 1, in GetTestVisitRows() 248 times.push_back(test_visit_rows[i].visit_time); in TEST_F() [all …]
|
D | visit_filter_unittest.cc | 257 visit.visit_time = filter_time; in TEST_F() 260 visit.visit_time = filter_time - base::TimeDelta::FromDays(7); in TEST_F() 263 visit.visit_time = filter_time + base::TimeDelta::FromDays(1); in TEST_F() 268 visit.visit_time = filter_time; in TEST_F() 270 visit.visit_time = filter_time - base::TimeDelta::FromDays(7); in TEST_F() 272 visit.visit_time = filter_time + base::TimeDelta::FromDays(7); in TEST_F() 276 visit.visit_time = filter_time; in TEST_F() 280 visit.visit_time = filter_time + base::TimeDelta::FromMinutes(30); in TEST_F() 284 visit.visit_time = filter_time - base::TimeDelta::FromDays(7); in TEST_F() 289 visit.visit_time = filter_time - base::TimeDelta::FromDays(7) - in TEST_F() [all …]
|
D | history_types.h | 236 base::Time visit_time; variable 257 return visit_time < other.visit_time; 277 base::Time visit_time; member 285 URLResult(const GURL& url, base::Time visit_time); 292 base::Time visit_time() const { return visit_time_; } in visit_time() function 293 void set_visit_time(base::Time visit_time) { visit_time_ = visit_time; } in set_visit_time() argument
|
D | typed_url_syncable_service.cc | 52 if (previous_visit_time == visit->visit_time.ToInternalValue()) in CheckVisitOrdering() 54 else if (previous_visit_time > visit->visit_time.ToInternalValue()) in CheckVisitOrdering() 58 previous_visit_time = visit->visit_time.ToInternalValue(); in CheckVisitOrdering() 331 visits.back().visit_time.ToInternalValue()); in WriteToTypedUrlSpecifics() 391 typed_url->add_visits(visit->visit_time.ToInternalValue()); in WriteToTypedUrlSpecifics() 440 url->set_last_visit(visits->back().visit_time); in FixupURLAndGetVisits()
|
D | typed_url_syncable_service_unittest.cc | 136 int64 visit_time); 141 int64 visit_time); 216 int64 visit_time) { in AddNewestVisit() argument 217 base::Time time = base::Time::FromInternalValue(visit_time); in AddNewestVisit() 233 int64 visit_time) { in AddOldestVisit() argument 234 base::Time time = base::Time::FromInternalValue(visit_time); in AddOldestVisit() 322 EXPECT_EQ(visits[0].visit_time.ToInternalValue(), url_specifics.visits(0)); in TEST_F() 374 EXPECT_EQ(visits[0].visit_time.ToInternalValue(), url_specifics.visits(1)); in TEST_F() 377 EXPECT_EQ(visits[1].visit_time.ToInternalValue(), url_specifics.visits(0)); in TEST_F() 458 EXPECT_EQ(visits[i].visit_time.ToInternalValue(), url_specifics.visits(r)); in TEST_F()
|
D | history_types.cc | 82 visit_time(arg_visit_time), in VisitRow() 97 URLResult::URLResult(const GURL& url, base::Time visit_time) in URLResult() argument 99 visit_time_(visit_time), in URLResult() 126 return lhs.visit_time() > rhs.visit_time(); in CompareVisitTime()
|
D | history_querying_unittest.cc | 61 if (result.visit_time() != test_entries[test_entry_index].time) in NthResultIs() 106 options.end_time = results.back().visit_time(); in TestPaging() 120 options.end_time = results.back().visit_time(); in TestPaging() 136 ASSERT_NE(options.end_time, results.back().visit_time()); in TestPaging() 137 options.end_time = results.back().visit_time(); in TestPaging()
|
D | visit_database.cc | 88 visit->visit_time = base::Time::FromInternalValue(statement.ColumnInt64(2)); in FillVisitRow() 127 found_urls_midnight != visit.visit_time.LocalMidnight()) { in FillVisitVectorWithOptions() 129 found_urls_midnight = visit.visit_time.LocalMidnight(); in FillVisitVectorWithOptions() 150 statement.BindInt64(1, visit->visit_time.ToInternalValue()); in AddVisit() 236 statement.BindInt64(1, visit.visit_time.ToInternalValue()); in UpdateVisitRow()
|
D | visit_filter.cc | 127 base::TimeDelta time_passed = filter_time_ - visit.visit_time; in GetVisitScore() 145 visit.visit_time).InMicroseconds(); in GetVisitScore() 154 visit.visit_time); in GetVisitScore()
|
/external/chromium/chrome/browser/history/ |
D | text_database_manager_unittest.cc | 77 visit_row.visit_time = Time::FromUTCExploded(exploded); in AddAllPages() 84 times->push_back(visit_row.visit_time); in AddAllPages() 86 visit_row.visit_time, UTF8ToUTF16(kTitle1), in AddAllPages() 91 visit_row.visit_time = Time::FromUTCExploded(exploded); in AddAllPages() 93 times->push_back(visit_row.visit_time); in AddAllPages() 95 visit_row.visit_time, UTF8ToUTF16(kTitle2), in AddAllPages() 100 visit_row.visit_time = Time::FromUTCExploded(exploded); in AddAllPages() 102 times->push_back(visit_row.visit_time); in AddAllPages() 104 visit_row.visit_time, UTF8ToUTF16(kTitle3), in AddAllPages() 110 visit_row.visit_time = Time::FromUTCExploded(exploded); in AddAllPages() [all …]
|
D | visit_database_unittest.cc | 27 a.visit_time == b.visit_time && in IsVisitInfoEqual() 77 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in TEST_F() 83 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in TEST_F() 146 modification.visit_time = Time::Now() + TimeDelta::FromDays(1); in TEST_F() 171 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in TEST_F() 181 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in TEST_F() 190 visit_info1.visit_time + TimeDelta::FromSeconds(3), visit_info3.visit_id, in TEST_F() 199 visit_info1.visit_time + TimeDelta::FromSeconds(4), visit_info4.visit_id, in TEST_F() 217 GetVisibleVisitsInRange(visit_info2.visit_time, visit_info4.visit_time, 0, in TEST_F()
|
D | text_database_manager.cc | 50 Time visit_time) in PageInfo() argument 53 visit_time_(visit_time) { in PageInfo() 216 AddPageData(url, url_row.id(), visit.visit_id, visit.visit_time, in AddPageTitle() 224 AddPageData(url, info.url_id(), info.visit_id(), info.visit_time(), in AddPageTitle() 252 AddPageData(url, url_row.id(), visit.visit_id, visit.visit_time, in AddPageContents() 260 AddPageData(url, info.url_id(), info.visit_id(), info.visit_time(), in AddPageContents() 272 Time visit_time, in AddPageData() argument 275 TextDatabase* db = GetDBForTime(visit_time, true); in AddPageData() 295 DeletePageData(visits[i].visit_time, url, NULL); in AddPageData() 306 DCHECK(visit_time == visits[our_visit_row_index].visit_time); in AddPageData() [all …]
|
D | history_types.h | 203 base::Time visit_time; variable 225 return visit_time < other.visit_time; 258 base::Time visit_time; member 336 URLResult(const GURL& url, base::Time visit_time); 342 base::Time visit_time() const { return visit_time_; } in visit_time() function 343 void set_visit_time(base::Time visit_time) { visit_time_ = visit_time; } in set_visit_time() argument
|
D | text_database_manager.h | 106 base::Time visit_time); 117 base::Time visit_time, 174 PageInfo(URLID url_id, VisitID visit_id, base::Time visit_time); 180 base::Time visit_time() const { return visit_time_; } in visit_time() function
|
D | expire_history_backend_unittest.cc | 242 visit_row1.visit_time = visit_times[0]; in AddExampleData() 248 visit_row2.visit_time = visit_times[1]; in AddExampleData() 254 visit_row3.visit_time = visit_times[2]; in AddExampleData() 261 visit_row4.visit_time = visit_times[3]; in AddExampleData() 267 visit_row1.visit_time, UTF8ToUTF16("title"), in AddExampleData() 271 visit_row2.visit_time, UTF8ToUTF16("title"), in AddExampleData() 274 visit_row3.visit_time, UTF8ToUTF16("title"), in AddExampleData() 280 visit_row4.visit_time, UTF8ToUTF16("title"), in AddExampleData() 476 visits[0].visit_time); in TEST_F() 606 visits[0].visit_time); in TEST_F() [all …]
|
/external/chromium/chrome/browser/ui/webui/ |
D | history2_ui.cc | 207 int visit_time = 0; in HandleRemoveURLsOnOneDay() local 208 ExtractIntegerValue(args, &visit_time); in HandleRemoveURLsOnOneDay() 211 static_cast<time_t>(visit_time)).LocalExplode(&exploded); in HandleRemoveURLsOnOneDay() 258 static_cast<int>(page.visit_time().ToTimeT())); in QueryComplete() 268 string16 date_str = TimeFormat::RelativeDate(page.visit_time(), in QueryComplete() 271 date_str = base::TimeFormatFriendlyDate(page.visit_time()); in QueryComplete() 276 base::TimeFormatFriendlyDate(page.visit_time())); in QueryComplete() 280 base::TimeFormatTimeOfDay(page.visit_time())); in QueryComplete() 283 base::TimeFormatShortDate(page.visit_time())); in QueryComplete()
|
D | history_ui.cc | 207 int visit_time = 0; in HandleRemoveURLsOnOneDay() local 208 ExtractIntegerValue(args, &visit_time); in HandleRemoveURLsOnOneDay() 211 static_cast<time_t>(visit_time)).LocalExplode(&exploded); in HandleRemoveURLsOnOneDay() 258 static_cast<int>(page.visit_time().ToTimeT())); in QueryComplete() 268 string16 date_str = TimeFormat::RelativeDate(page.visit_time(), in QueryComplete() 271 date_str = base::TimeFormatFriendlyDate(page.visit_time()); in QueryComplete() 276 base::TimeFormatFriendlyDate(page.visit_time())); in QueryComplete() 280 base::TimeFormatTimeOfDay(page.visit_time())); in QueryComplete() 283 base::TimeFormatShortDate(page.visit_time())); in QueryComplete()
|
/external/chromium_org/chrome/browser/history/android/ |
D | visit_sql_handler_unittest.cc | 87 EXPECT_EQ(row.last_visit_time(), visits[0].visit_time); in TEST_F() 107 EXPECT_EQ(row.created(), visits[0].visit_time); in TEST_F() 126 EXPECT_NE(Time(), visits[0].visit_time); in TEST_F() 150 EXPECT_EQ(row.created(), visits[0].visit_time); in TEST_F() 152 EXPECT_EQ(row.last_visit_time(), visits[9].visit_time); in TEST_F() 184 EXPECT_EQ(update_row.last_visit_time(), visits[0].visit_time); in TEST_F() 249 EXPECT_EQ(update_row.created(), visits[0].visit_time); in TEST_F() 250 EXPECT_EQ(update_row.last_visit_time(), visits[10].visit_time); in TEST_F()
|
D | visit_sql_handler.cc | 115 bool VisitSQLHandler::AddVisit(URLID url_id, const Time& visit_time) { in AddVisit() argument 118 VisitRow visit_row(url_id, visit_time, 0, in AddVisit()
|
D | visit_sql_handler.h | 32 bool AddVisit(URLID url_id, const base::Time& visit_time);
|
/external/chromium_org/chrome/browser/sync/glue/ |
D | typed_url_model_associator.cc | 50 if (previous_visit_time == visit->visit_time.ToInternalValue()) in CheckVisitOrdering() 52 else if (previous_visit_time > visit->visit_time.ToInternalValue()) in CheckVisitOrdering() 56 previous_visit_time = visit->visit_time.ToInternalValue(); in CheckVisitOrdering() 110 url->set_last_visit(visits->back().visit_time); in FixupURLAndGetVisits() 274 it != visits.end() && it->visit_time < earliest_visit; ) { in DoAssociateModels() 282 visits.back().visit_time.ToInternalValue()); in DoAssociateModels() 607 base::Time earliest_history_time = (*visits)[0].visit_time; in MergeUrls() 617 history_time = (*visits)[history_visit_index].visit_time; in MergeUrls() 657 new_visit->first > visit_ix->visit_time) { in MergeUrls() 668 new_url->set_last_visit(visits->back().visit_time); in MergeUrls() [all …]
|
/external/chromium/chrome/browser/sync/glue/ |
D | typed_url_model_associator.cc | 392 if (left_time < (*visits)[right].visit_time) { in MergeUrls() 397 } else if (left_time > (*visits)[right].visit_time) { in MergeUrls() 416 while (visit_ix != visits->end() && *new_visit > visit_ix->visit_time) { in MergeUrls() 426 new_url->set_last_visit(visits->back().visit_time); in MergeUrls() 441 DCHECK(url.last_visit() == visits.back().visit_time); in WriteToSyncNode() 451 typed_url.add_visit(visit->visit_time.ToInternalValue()); in WriteToSyncNode() 469 if (old_visits[left].visit_time < right_time) { in DiffVisits() 472 } else if (old_visits[left].visit_time > right_time) { in DiffVisits()
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | history_ui.cc | 196 base::string16 getRelativeDateLocalized(const base::Time& visit_time) { in getRelativeDateLocalized() argument 198 base::string16 date_str = ui::TimeFormat::RelativeDate(visit_time, &midnight); in getRelativeDateLocalized() 200 date_str = base::TimeFormatFriendlyDate(visit_time); in getRelativeDateLocalized() 205 base::TimeFormatFriendlyDate(visit_time)); in getRelativeDateLocalized() 576 base::Time visit_time = base::Time::FromJsTime(timestamp); in HandleRemoveVisits() local 581 expire_args->SetTimeRangeForOneDay(visit_time); in HandleRemoveVisits() 586 global_id_directive->add_global_id(visit_time.ToInternalValue()); in HandleRemoveVisits() 766 page.visit_time(), in QueryComplete() 825 base::Time visit_time; in WebHistoryQueryComplete() local
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | typed_urls_helper.cc | 336 if (visit1[i].visit_time != visit2[i].visit_time) in AreVisitsEqual() 345 if (t == visits[i].visit_time) in AreVisitsUnique() 347 t = visits[i].visit_time; in AreVisitsUnique()
|
/external/chromium/chrome/browser/autocomplete/ |
D | history_quick_provider_unittest.cc | 134 Time visit_time = Time::Now() - TimeDelta::FromDays(cur.days_from_now); in FillData() local 140 url_info.set_last_visit(visit_time); in FillData() 146 visit_time, false, in FillData()
|