diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 12:00:40 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 12:00:40 +0000 |
commit | d9eb3c45ead253d51ab8838055c5493ba0ac7951 (patch) | |
tree | beab9a67d8fbd22a85301f784b48b8b55757ed60 /chrome/browser/safe_browsing/safe_browsing_database.h | |
parent | d4f06fa99aa8f04fedbb336fe4e115831b2bc6ca (diff) | |
download | chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.zip chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.tar.gz chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.tar.bz2 |
Port flush_cache tool and perf_tests.
BUG=4160,4263
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=6815
Review URL: http://codereview.chromium.org/9639
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.h')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_database.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h index 5e38763..6e6612a 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database.h +++ b/chrome/browser/safe_browsing/safe_browsing_database.h @@ -89,6 +89,9 @@ class SafeBrowsingDatabase { virtual std::wstring filename() const { return filename_; } protected: + friend class SafeBrowsingDatabaseTest; + FRIEND_TEST(SafeBrowsingDatabase, HashCaching); + static std::wstring BloomFilterFilename(const std::wstring& db_filename); // Load the bloom filter off disk, or generates one if it doesn't exist. @@ -106,9 +109,6 @@ class SafeBrowsingDatabase { // Measuring false positive rate. Call this each time we look in the filter. virtual void IncrementBloomFilterReadCount() {} - // Full hash cache support. - FRIEND_TEST(SafeBrowsingDatabase, HashCaching); - typedef struct HashCacheEntry { SBFullHash full_hash; int list_id; |