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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 7 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/inspector_protocol/ParserTest.cpp
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp b/third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp
index b6bbf0185f3bbdd0e66207d525913f973b23d349..1dfeb4a4fbb9837e1be5c75d177648ac8cfb50c6 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp
+++ b/third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp
@@ -14,8 +14,8 @@ namespace protocol {
TEST(ParserTest, Reading)
{
protocol::Value* tmpValue;
- OwnPtr<protocol::Value> root;
- OwnPtr<protocol::Value> root2;
+ std::unique_ptr<protocol::Value> root;
+ std::unique_ptr<protocol::Value> root2;
String16 strVal;
int intVal = 0;
@@ -495,7 +495,7 @@ TEST(ParserTest, InvalidSanity)
};
for (size_t i = 0; i < 11; ++i) {
- OwnPtr<protocol::Value> result = parseJSON(invalidJson[i]);
+ std::unique_ptr<protocol::Value> result = parseJSON(invalidJson[i]);
EXPECT_FALSE(result.get());
}
}

Powered by Google App Engine
This is Rietveld 408576698