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 6fde06965dc87064506c44169b0bd9f009c72469..ce3a4786f4213e583275f9834c483b4fd8f6cf97 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp |
@@ -39,6 +39,7 @@ |
#include "modules/indexeddb/MockWebIDBDatabase.h" |
#include "platform/SharedBuffer.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include <memory> |
#include <v8.h> |
namespace blink { |
@@ -63,7 +64,7 @@ private: |
TEST(IDBTransactionTest, EnsureLifetime) |
{ |
V8TestingScope scope; |
- OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); |
+ std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); |
EXPECT_CALL(*backend, close()) |
.Times(1); |
Persistent<IDBDatabase> db = IDBDatabase::create(scope.getExecutionContext(), std::move(backend), FakeIDBDatabaseCallbacks::create()); |
@@ -98,7 +99,7 @@ TEST(IDBTransactionTest, TransactionFinish) |
V8TestingScope scope; |
const int64_t transactionId = 1234; |
- OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); |
+ std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); |
EXPECT_CALL(*backend, commit(transactionId)) |
.Times(1); |
EXPECT_CALL(*backend, close()) |