Index: third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp |
index e06abf1465b36b2228ddc7023c940550c7aa4718..45cd51694ed7325b820b982d14898ec3aeb19934 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp |
+++ b/third_party/WebKit/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 "modules/indexeddb/MockWebIDBDatabase.h" |
@@ -82,7 +83,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() { } |
@@ -113,7 +114,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(); |
@@ -154,7 +155,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(); |