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

Unified Diff: Source/modules/indexeddb/IDBTransactionTest.cpp

Issue 1182233003: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 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
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.idl ('k') | Source/modules/indexeddb/WebIDBCallbacksImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBTransactionTest.cpp
diff --git a/Source/modules/indexeddb/IDBTransactionTest.cpp b/Source/modules/indexeddb/IDBTransactionTest.cpp
index 102b99b5cbf9811443321a203d28f236d180be74..8ccf6e254e64f3e9b34fafe06d07300564e62cc1 100644
--- a/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -32,8 +32,9 @@
#include "modules/indexeddb/IDBTransaction.h"
#include "bindings/core/v8/V8BindingForTesting.h"
-#include "core/dom/DOMError.h"
+#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
+#include "core/dom/ExceptionCode.h"
#include "modules/indexeddb/IDBDatabase.h"
#include "modules/indexeddb/IDBDatabaseCallbacks.h"
#include "platform/SharedBuffer.h"
@@ -94,7 +95,7 @@ public:
static FakeIDBDatabaseCallbacks* create() { return new FakeIDBDatabaseCallbacks(); }
void onVersionChange(int64_t oldVersion, int64_t newVersion) override { }
void onForcedClose() override { }
- void onAbort(int64_t transactionId, DOMError* error) override { }
+ void onAbort(int64_t transactionId, DOMException* error) override { }
void onComplete(int64_t transactionId) override { }
private:
FakeIDBDatabaseCallbacks() { }
@@ -123,7 +124,7 @@ TEST_F(IDBTransactionTest, EnsureLifetime)
// This will generate an abort() call to the back end which is dropped by the fake proxy,
// so an explicit onAbort call is made.
executionContext()->stopActiveDOMObjects();
- transaction->onAbort(DOMError::create(AbortError, "Aborted"));
+ transaction->onAbort(DOMException::create(AbortError, "Aborted"));
transaction.clear();
Heap::collectAllGarbage();
@@ -159,7 +160,7 @@ TEST_F(IDBTransactionTest, TransactionFinish)
// Fire an abort to make sure this doesn't free the transaction during use. The test
// will not fail if it is, but ASAN would notice the error.
- db->onAbort(transactionId, DOMError::create(AbortError, "Aborted"));
+ db->onAbort(transactionId, DOMException::create(AbortError, "Aborted"));
// onAbort() should have cleared the transaction's reference to the database.
Heap::collectAllGarbage();
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.idl ('k') | Source/modules/indexeddb/WebIDBCallbacksImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698