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

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

Issue 2109273002: IndexedDB: Created IndexedDBDataLossInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initializing data loss in IndexedDBBackingStore::Open Created 4 years, 5 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_factory_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_factory_unittest.cc b/content/browser/indexed_db/indexed_db_factory_unittest.cc
index cc4cb3ceeaf8afbae39419184dabbf4b23e2de13..3baab1da76beccc3537861e8016dd8db5bad9655 100644
--- a/content/browser/indexed_db/indexed_db_factory_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_factory_unittest.cc
@@ -39,20 +39,13 @@ class MockIDBFactory : public IndexedDBFactoryImpl {
scoped_refptr<IndexedDBBackingStore> TestOpenBackingStore(
const Origin& origin,
const base::FilePath& data_directory) {
- blink::WebIDBDataLoss data_loss =
- blink::WebIDBDataLossNone;
- std::string data_loss_message;
+ IndexedDBDataLossInfo data_loss_info;
bool disk_full;
leveldb::Status s;
scoped_refptr<IndexedDBBackingStore> backing_store =
- OpenBackingStore(origin,
- data_directory,
- NULL /* request_context */,
- &data_loss,
- &data_loss_message,
- &disk_full,
- &s);
- EXPECT_EQ(blink::WebIDBDataLossNone, data_loss);
+ OpenBackingStore(origin, data_directory, NULL /* request_context */,
+ &data_loss_info, &disk_full, &s);
+ EXPECT_EQ(blink::WebIDBDataLossNone, data_loss_info.status);
return backing_store;
}
@@ -221,8 +214,7 @@ class DiskFullFactory : public IndexedDBFactoryImpl {
const Origin& origin,
const base::FilePath& data_directory,
net::URLRequestContext* request_context,
- blink::WebIDBDataLoss* data_loss,
- std::string* data_loss_message,
+ IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
leveldb::Status* s) override {
*disk_full = true;
@@ -447,7 +439,7 @@ class ErrorCallbacks : public MockIndexedDBCallbacks {
ErrorCallbacks() : MockIndexedDBCallbacks(false), saw_error_(false) {}
void OnError(const IndexedDBDatabaseError& error) override {
- saw_error_= true;
+ saw_error_ = true;
}
bool saw_error() const { return saw_error_; }
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_impl.cc ('k') | content/browser/indexed_db/mock_indexed_db_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698