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

Side by Side Diff: chrome/browser/history/android/android_provider_backend_unittest.cc

Issue 1081923002: Remove PrerenderLocalPredictor, part 5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-local-predictor-4
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/history/history_backend_unittest.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/history/android/android_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 } // namespace 70 } // namespace
71 71
72 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate { 72 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate {
73 public: 73 public:
74 AndroidProviderBackendDelegate() {} 74 AndroidProviderBackendDelegate() {}
75 75
76 void NotifyProfileError(sql::InitStatus init_status) override {} 76 void NotifyProfileError(sql::InitStatus init_status) override {}
77 void SetInMemoryBackend( 77 void SetInMemoryBackend(
78 scoped_ptr<InMemoryHistoryBackend> backend) override {} 78 scoped_ptr<InMemoryHistoryBackend> backend) override {}
79 void NotifyAddVisit(const history::BriefVisitInfo& info) override {}
80 void NotifyFaviconChanged(const std::set<GURL>& url) override { 79 void NotifyFaviconChanged(const std::set<GURL>& url) override {
81 favicon_changed_.reset(new std::set<GURL>(url.begin(), url.end())); 80 favicon_changed_.reset(new std::set<GURL>(url.begin(), url.end()));
82 } 81 }
83 void NotifyURLVisited(ui::PageTransition, 82 void NotifyURLVisited(ui::PageTransition,
84 const history::URLRow& row, 83 const history::URLRow& row,
85 const history::RedirectList& redirects, 84 const history::RedirectList& redirects,
86 base::Time visit_time) override {} 85 base::Time visit_time) override {}
87 void NotifyURLsModified(const history::URLRows& rows) override { 86 void NotifyURLsModified(const history::URLRows& rows) override {
88 modified_details_.reset(new history::URLRows(rows)); 87 modified_details_.reset(new history::URLRows(rows));
89 } 88 }
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 update_args, &update_count)); 2147 update_args, &update_count));
2149 // Verify notifications. 2148 // Verify notifications.
2150 EXPECT_FALSE(notifier_.deleted_details()); 2149 EXPECT_FALSE(notifier_.deleted_details());
2151 ASSERT_TRUE(notifier_.modified_details()); 2150 ASSERT_TRUE(notifier_.modified_details());
2152 ASSERT_EQ(1u, notifier_.modified_details()->size()); 2151 ASSERT_EQ(1u, notifier_.modified_details()->size());
2153 // No favicon will be updated as thumbnail database is missing. 2152 // No favicon will be updated as thumbnail database is missing.
2154 EXPECT_FALSE(notifier_.favicon_changed()); 2153 EXPECT_FALSE(notifier_.favicon_changed());
2155 } 2154 }
2156 2155
2157 } // namespace history 2156 } // namespace history
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698