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

Unified Diff: third_party/WebKit/Source/platform/TracedValueTest.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/platform/TracedValueTest.cpp
diff --git a/third_party/WebKit/Source/platform/TracedValueTest.cpp b/third_party/WebKit/Source/platform/TracedValueTest.cpp
index 7a35df6c185d308dea307b24875ecb0c5835bf8c..b2357545156c84e6755ee4c3a21ed7d5de4bd9ed 100644
--- a/third_party/WebKit/Source/platform/TracedValueTest.cpp
+++ b/third_party/WebKit/Source/platform/TracedValueTest.cpp
@@ -7,11 +7,10 @@
#include "base/json/json_reader.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include <memory>
namespace blink {
-std::unique_ptr<base::Value> parseTracedValue(std::unique_ptr<TracedValue> value)
+std::unique_ptr<base::Value> parseTracedValue(PassOwnPtr<TracedValue> value)
{
base::JSONReader reader;
CString utf8 = value->toString().utf8();
@@ -20,7 +19,7 @@ std::unique_ptr<base::Value> parseTracedValue(std::unique_ptr<TracedValue> value
TEST(TracedValueTest, FlatDictionary)
{
- std::unique_ptr<TracedValue> value = TracedValue::create();
+ OwnPtr<TracedValue> value = TracedValue::create();
value->setInteger("int", 2014);
value->setDouble("double", 0.0);
value->setBoolean("bool", true);
@@ -42,7 +41,7 @@ TEST(TracedValueTest, FlatDictionary)
TEST(TracedValueTest, Hierarchy)
{
- std::unique_ptr<TracedValue> value = TracedValue::create();
+ OwnPtr<TracedValue> value = TracedValue::create();
value->setInteger("i0", 2014);
value->beginDictionary("dict1");
value->setInteger("i1", 2014);
@@ -103,7 +102,7 @@ TEST(TracedValueTest, Hierarchy)
TEST(TracedValueTest, Escape)
{
- std::unique_ptr<TracedValue> value = TracedValue::create();
+ OwnPtr<TracedValue> value = TracedValue::create();
value->setString("s0", "value0\\");
value->setString("s1", "value\n1");
value->setString("s2", "\"value2\"");
« no previous file with comments | « third_party/WebKit/Source/platform/TracedValue.cpp ('k') | third_party/WebKit/Source/platform/WaitableEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698