TestHistoryBackend() : HistoryBackend(base::FilePath(), NULL, NULL) {}
// HistoryBackend test implementation.
- virtual bool IsExpiredVisitTime(const base::Time& time) OVERRIDE {
+ bool IsExpiredVisitTime(const base::Time& time) override {
return time.ToInternalValue() == EXPIRED_VISIT;
}
- virtual bool GetMostRecentVisitsForURL(
- URLID id,
- int max_visits,
- VisitVector* visits) OVERRIDE {
+ bool GetMostRecentVisitsForURL(URLID id,
+ int max_visits,
+ VisitVector* visits) override {
if (local_db_visits_[id].empty())
return false;
}
private:
- virtual ~TestHistoryBackend() {}
+ ~TestHistoryBackend() override {}
// Mock of visit table in local db.
std::map<URLID, VisitVector> local_db_visits_;
protected:
TypedUrlSyncableServiceTest() {}
- virtual ~TypedUrlSyncableServiceTest() {}
+ ~TypedUrlSyncableServiceTest() override {}
- virtual void SetUp() OVERRIDE {
+ void SetUp() override {
fake_history_backend_ = new TestHistoryBackend();
typed_url_sync_service_.reset(
new TypedUrlSyncableService(fake_history_backend_.get()));