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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/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())
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698