Index: content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc |
diff --git a/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc b/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc |
index 4349ee240c12a4eaaee91d20020662e4bad6b562..dc02ff7331c4748bd2b3998951b89b828dc417f9 100644 |
--- a/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc |
+++ b/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc |
@@ -41,6 +41,22 @@ class FunctionTracer { |
namespace content { |
+class IndexedDBTestDatabase : public IndexedDBDatabase { |
+ public: |
+ IndexedDBTestDatabase(const base::string16& name, |
+ IndexedDBBackingStore* backing_store, |
+ IndexedDBFactory* factory, |
+ const IndexedDBDatabase::Identifier& unique_identifier) |
+ : IndexedDBDatabase(name, backing_store, factory, unique_identifier) {} |
+ |
+ protected: |
+ ~IndexedDBTestDatabase() override {} |
+ |
+ size_t GetMaxMessageSizeInBytes() const override { |
+ return 10 * 1024 * 1024; // 10MB |
+ } |
+}; |
+ |
class IndexedDBTestTransaction : public IndexedDBTransaction { |
public: |
IndexedDBTestTransaction( |
@@ -234,6 +250,16 @@ MockBrowserTestIndexedDBClassFactory::MockBrowserTestIndexedDBClassFactory() |
MockBrowserTestIndexedDBClassFactory::~MockBrowserTestIndexedDBClassFactory() { |
} |
+IndexedDBDatabase* |
+MockBrowserTestIndexedDBClassFactory::CreateIndexedDBDatabase( |
+ const base::string16& name, |
+ IndexedDBBackingStore* backing_store, |
+ IndexedDBFactory* factory, |
+ const IndexedDBDatabase::Identifier& unique_identifier) { |
+ return new IndexedDBTestDatabase(name, backing_store, factory, |
+ unique_identifier); |
+} |
+ |
IndexedDBTransaction* |
MockBrowserTestIndexedDBClassFactory::CreateIndexedDBTransaction( |
int64 id, |