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

Unified Diff: third_party/WebKit/Source/modules/webaudio/ScriptProcessorNodeTest.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/webaudio/ScriptProcessorNodeTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNodeTest.cpp b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNodeTest.cpp
index db38a7d5c1dc2409598fc21664b436412fad5c35..d22af2dca33cf4da0588c46cf3adbcf9e24ac6f5 100644
--- a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNodeTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNodeTest.cpp
@@ -2,16 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "modules/webaudio/ScriptProcessorNode.h"
#include "core/testing/DummyPageHolder.h"
#include "modules/webaudio/OfflineAudioContext.h"
+#include "modules/webaudio/ScriptProcessorNode.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include <memory>
namespace blink {
TEST(ScriptProcessorNodeTest, BufferLifetime)
{
- OwnPtr<DummyPageHolder> page = DummyPageHolder::create();
+ std::unique_ptr<DummyPageHolder> page = DummyPageHolder::create();
OfflineAudioContext* context = OfflineAudioContext::create(&page->document(), 2, 1, 48000, ASSERT_NO_EXCEPTION);
ScriptProcessorNode* node = context->createScriptProcessor(ASSERT_NO_EXCEPTION);
ScriptProcessorHandler& handler = static_cast<ScriptProcessorHandler&>(node->handler());

Powered by Google App Engine
This is Rietveld 408576698