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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecUTF8Test.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/wtf/text/TextCodecUTF8Test.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF8Test.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUTF8Test.cpp
index 66fe49f047d799904a41e5ba557ffad0ea986a26..c2b1814cad34caa665b5bd25893c854b81c704d4 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF8Test.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF8Test.cpp
@@ -31,11 +31,11 @@
#include "wtf/text/TextCodecUTF8.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/OwnPtr.h"
#include "wtf/text/TextCodec.h"
#include "wtf/text/TextEncoding.h"
#include "wtf/text/TextEncodingRegistry.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace WTF {
@@ -44,7 +44,7 @@ namespace {
TEST(TextCodecUTF8, DecodeAscii)
{
TextEncoding encoding("UTF-8");
- OwnPtr<TextCodec> codec(newTextCodec(encoding));
+ std::unique_ptr<TextCodec> codec(newTextCodec(encoding));
const char testCase[] = "HelloWorld";
size_t testCaseSize = sizeof(testCase) - 1;
@@ -61,7 +61,7 @@ TEST(TextCodecUTF8, DecodeAscii)
TEST(TextCodecUTF8, DecodeChineseCharacters)
{
TextEncoding encoding("UTF-8");
- OwnPtr<TextCodec> codec(newTextCodec(encoding));
+ std::unique_ptr<TextCodec> codec(newTextCodec(encoding));
// "Kanji" in Chinese characters.
const char testCase[] = "\xe6\xbc\xa2\xe5\xad\x97";
@@ -78,7 +78,7 @@ TEST(TextCodecUTF8, DecodeChineseCharacters)
TEST(TextCodecUTF8, Decode0xFF)
{
TextEncoding encoding("UTF-8");
- OwnPtr<TextCodec> codec(newTextCodec(encoding));
+ std::unique_ptr<TextCodec> codec(newTextCodec(encoding));
bool sawError = false;
const String& result = codec->decode("\xff", 1, DataEOF, false, sawError);
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698