summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history_backend_unittest.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 19:03:40 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 19:03:40 +0000
commit599874373cf5ae8b1ba75afda760534063012ccd (patch)
treea2fc39478768610c538e34c6fc98032dec630760 /chrome/browser/history/history_backend_unittest.cc
parentded678ec915e3ca698c91d67611ba48f8a938511 (diff)
downloadchromium_src-599874373cf5ae8b1ba75afda760534063012ccd.zip
chromium_src-599874373cf5ae8b1ba75afda760534063012ccd.tar.gz
chromium_src-599874373cf5ae8b1ba75afda760534063012ccd.tar.bz2
Added a new interface IChromeHistoryIndexer which needs to be implemented by
indexers which are interested in indexing Chrome's web history. These should register their CLSID in HKCU\Software\Google\Google Chrome\IndexerPlugins and this is be used by Chrome to publish its index. Added code to publish the index too. Checked in for Vijay Thadkal <veejay.t.s@gmail.com> (Google). Reitveld #9007. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history_backend_unittest.cc')
-rw-r--r--chrome/browser/history/history_backend_unittest.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/history/history_backend_unittest.cc b/chrome/browser/history/history_backend_unittest.cc
index a762df4..2f9bcf4 100644
--- a/chrome/browser/history/history_backend_unittest.cc
+++ b/chrome/browser/history/history_backend_unittest.cc
@@ -12,6 +12,7 @@
#include "chrome/common/jpeg_codec.h"
#include "chrome/common/thumbnail_score.h"
#include "chrome/tools/profiles/thumbnail-inl.h"
+#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::Time;
@@ -195,10 +196,15 @@ TEST_F(HistoryBackendTest, DeleteAll) {
ThumbnailScore score(0.25, true, true);
scoped_ptr<SkBitmap> google_bitmap(
JPEGCodec::Decode(kGoogleThumbnail, sizeof(kGoogleThumbnail)));
- backend_->thumbnail_db_->SetPageThumbnail(row1_id, *google_bitmap, score);
+
+ Time time;
+ GURL gurl;
+ backend_->thumbnail_db_->SetPageThumbnail(gurl, row1_id, *google_bitmap,
+ score, time);
scoped_ptr<SkBitmap> weewar_bitmap(
JPEGCodec::Decode(kWeewarThumbnail, sizeof(kWeewarThumbnail)));
- backend_->thumbnail_db_->SetPageThumbnail(row2_id, *weewar_bitmap, score);
+ backend_->thumbnail_db_->SetPageThumbnail(gurl, row2_id, *weewar_bitmap,
+ score, time);
// Star row1.
bookmark_model_.AddURL(