Home
last modified time | relevance | path

Searched refs:visit_time (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/chrome/browser/history/
Dvisit_database_unittest.cc30 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 …]
Dvisit_filter_unittest.cc257 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 …]
Dhistory_types.h236 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
Dtyped_url_syncable_service.cc52 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()
Dtyped_url_syncable_service_unittest.cc136 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()
Dhistory_types.cc82 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()
Dhistory_querying_unittest.cc61 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()
Dvisit_database.cc88 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()
Dvisit_filter.cc127 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/
Dtext_database_manager_unittest.cc77 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 …]
Dvisit_database_unittest.cc27 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()
Dtext_database_manager.cc50 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 …]
Dhistory_types.h203 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
Dtext_database_manager.h106 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
Dexpire_history_backend_unittest.cc242 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/
Dhistory2_ui.cc207 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()
Dhistory_ui.cc207 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/
Dvisit_sql_handler_unittest.cc87 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()
Dvisit_sql_handler.cc115 bool VisitSQLHandler::AddVisit(URLID url_id, const Time& visit_time) { in AddVisit() argument
118 VisitRow visit_row(url_id, visit_time, 0, in AddVisit()
Dvisit_sql_handler.h32 bool AddVisit(URLID url_id, const base::Time& visit_time);
/external/chromium_org/chrome/browser/sync/glue/
Dtyped_url_model_associator.cc50 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/
Dtyped_url_model_associator.cc392 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/
Dhistory_ui.cc196 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/
Dtyped_urls_helper.cc336 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/
Dhistory_quick_provider_unittest.cc134 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()

123