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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test coverage for the (slightly incorrect) behavior in strict mode when our flag is not enabl… Created 4 years, 3 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: third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h b/third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h
index 5794be4a0bf424cf1320d0d0da74696a595d53af..a0b0ffcf8844f818fbfd0f6500244285e32f4534 100644
--- a/third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h
+++ b/third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h
@@ -23,6 +23,7 @@ public:
MOCK_METHOD5(createObjectStore, void(long long transactionId, long long objectStoreId, const WebString& name, const WebIDBKeyPath&, bool autoIncrement));
MOCK_METHOD2(deleteObjectStore, void(long long transactionId, long long objectStoreId));
+ MOCK_METHOD3(renameObjectStore, void(long long transactionId, long long objectStoreId, const WebString& newName));
MOCK_METHOD4(createTransaction, void(long long id, WebIDBDatabaseCallbacks*, const WebVector<long long>& scope, WebIDBTransactionMode));
MOCK_METHOD0(close, void());
MOCK_METHOD0(versionChangeIgnored, void());
@@ -30,6 +31,7 @@ public:
MOCK_METHOD1(commit, void(long long transactionId));
MOCK_METHOD7(createIndex, void(long long transactionId, long long objectStoreId, long long indexId, const WebString& name, const WebIDBKeyPath&, bool unique, bool multiEntry));
MOCK_METHOD3(deleteIndex, void(long long transactionId, long long objectStoreId, long long indexId));
+ MOCK_METHOD4(renameIndex, void(long long transactionId, long long objectStoreId, long long indexId, const WebString& newName));
// Gmock does not support movable type, so cannot use MOCK_METHOD for addObserver. Issue: https://github.com/google/googletest/issues/395.
int32_t addObserver(std::unique_ptr<WebIDBObserver>, long long transactionId) { return -1; }

Powered by Google App Engine
This is Rietveld 408576698