| 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();
|
|
|