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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store_unittest.cc

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT Created 7 years, 6 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: content/browser/indexed_db/indexed_db_backing_store_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
index d519f89fa362347fe1470564ef275b646c555a7a..ebeb6e05caa3ff6250dd17f6918208982088c3f3 100644
--- a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
@@ -335,7 +335,12 @@ class MockIDBFactory : public IndexedDBFactory {
scoped_refptr<IndexedDBBackingStore> TestOpenBackingStore(
const WebSecurityOrigin& origin,
const base::FilePath& data_directory) {
- return OpenBackingStore(origin.databaseIdentifier(), data_directory);
+ WebKit::WebIDBCallbacks::DataLoss data_loss =
+ WebKit::WebIDBCallbacks::DataLossNone;
+ scoped_refptr<IndexedDBBackingStore> backing_store = OpenBackingStore(
+ origin.databaseIdentifier(), data_directory, &data_loss);
+ EXPECT_EQ(WebKit::WebIDBCallbacks::DataLossNone, data_loss);
+ return backing_store;
}
private:
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_callbacks_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698