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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.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/IDBRequestTest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
index f594ece9204e91ca205809ee094da80b1cdc4e15..17c1708757535e34c66f49af5e8c40e3e49d2807 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
@@ -39,11 +39,10 @@
#include "modules/indexeddb/MockWebIDBDatabase.h"
#include "platform/SharedBuffer.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
#include "wtf/dtoa/utils.h"
+#include <memory>
#include <v8.h>
namespace blink {
@@ -97,7 +96,7 @@ TEST(IDBRequestTest, ConnectionsAfterStopping)
Persistent<IDBDatabaseCallbacks> callbacks = IDBDatabaseCallbacks::create();
{
- OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
+ std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
EXPECT_CALL(*backend, abort(transactionId))
.Times(1);
EXPECT_CALL(*backend, close())
@@ -110,7 +109,7 @@ TEST(IDBRequestTest, ConnectionsAfterStopping)
}
{
- OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
+ std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
EXPECT_CALL(*backend, close())
.Times(1);
IDBOpenDBRequest* request = IDBOpenDBRequest::create(scope.getScriptState(), callbacks, transactionId, version);

Powered by Google App Engine
This is Rietveld 408576698