diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-04 17:22:08 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-04 17:22:08 +0000 |
commit | f8c42c90784b19c7ec17538b7977a4c2e5ece629 (patch) | |
tree | 6a241a57ddcf610e88d3abd48898530a521aca27 /chrome/browser/visitedlink_unittest.cc | |
parent | 17c4f3c7c289c840f8b285f7834ab7007f85e35e (diff) | |
download | chromium_src-f8c42c90784b19c7ec17538b7977a4c2e5ece629.zip chromium_src-f8c42c90784b19c7ec17538b7977a4c2e5ece629.tar.gz chromium_src-f8c42c90784b19c7ec17538b7977a4c2e5ece629.tar.bz2 |
Ensure that VisitedLink listener Add event only fires when new fingerprint is added, and not during resizing/rebuilding or deleting fingerprints.
R=brettw
TEST=VisitedLinkTest.Listener
BUG=15926
Review URL: http://codereview.chromium.org/149185
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19931 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/visitedlink_unittest.cc')
-rw-r--r-- | chrome/browser/visitedlink_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/visitedlink_unittest.cc b/chrome/browser/visitedlink_unittest.cc index 45e620a..43be8e8 100644 --- a/chrome/browser/visitedlink_unittest.cc +++ b/chrome/browser/visitedlink_unittest.cc @@ -206,11 +206,11 @@ TEST_F(VisitedLinkTest, Delete) { const VisitedLinkCommon::Fingerprint kFingerprint2 = kInitialSize * 2 + 14; const VisitedLinkCommon::Fingerprint kFingerprint3 = kInitialSize * 3 + 14; const VisitedLinkCommon::Fingerprint kFingerprint4 = kInitialSize * 4 + 14; - master_->AddFingerprint(kFingerprint0); // @14 - master_->AddFingerprint(kFingerprint1); // @15 - master_->AddFingerprint(kFingerprint2); // @16 - master_->AddFingerprint(kFingerprint3); // @0 - master_->AddFingerprint(kFingerprint4); // @1 + master_->AddFingerprint(kFingerprint0, false); // @14 + master_->AddFingerprint(kFingerprint1, false); // @15 + master_->AddFingerprint(kFingerprint2, false); // @16 + master_->AddFingerprint(kFingerprint3, false); // @0 + master_->AddFingerprint(kFingerprint4, false); // @1 // Deleting 14 should move the next value up one slot (we do not specify an // order). |