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

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 314ce23f70ec5a02e52f25a11f0650d752468776..186de80981d2c2b44be6c8306b7f17624218f4fc 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,11 @@ 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::None;
+ scoped_refptr<IndexedDBBackingStore> backing_store = OpenBackingStore(
+ origin.databaseIdentifier(), data_directory, &data_loss);
+ EXPECT_FALSE(data_loss);
jsbell 2013/06/17 23:21:48 Should be: EXPECT_EQ(WebKit::WebIDBCallbacks::None
dgrogan 2013/06/17 23:52:40 Done.
+ return backing_store;
}
private:

Powered by Google App Engine
This is Rietveld 408576698