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

Unified Diff: chrome/browser/history/history_database.h

Issue 10837244: Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Tweak suppression. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_database.h
===================================================================
--- chrome/browser/history/history_database.h (revision 151481)
+++ chrome/browser/history/history_database.h (working copy)
@@ -149,13 +149,16 @@
virtual base::Time GetEarlyExpirationThreshold();
virtual void UpdateEarlyExpirationThreshold(base::Time threshold);
+ // Returns the database connection so that unit tests can directly access it.
+ sql::Connection* get_db_for_testing() { return &db_; }
+
private:
#if defined(OS_ANDROID)
// AndroidProviderBackend uses the |db_|.
friend class AndroidProviderBackend;
FRIEND_TEST_ALL_PREFIXES(AndroidURLsMigrationTest, MigrateToVersion22);
#endif
- friend class InMemoryURLIndexTest;
+ friend class InMemoryURLIndexBaseTest;
FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration);
// Overridden from URLDatabase:

Powered by Google App Engine
This is Rietveld 408576698