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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecReplacementTest.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/wtf/text/TextCodecReplacementTest.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecReplacementTest.cpp b/third_party/WebKit/Source/wtf/text/TextCodecReplacementTest.cpp
index 9533604c044021c0b0afabaf7f7c69a138ad9184..835b69c45b2d759ec6087c3397c5574025bec3ca 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecReplacementTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecReplacementTest.cpp
@@ -5,12 +5,12 @@
#include "wtf/text/TextCodecReplacement.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/OwnPtr.h"
#include "wtf/text/CString.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 {
@@ -32,7 +32,7 @@ TEST(TextCodecReplacement, Aliases)
TEST(TextCodecReplacement, DecodesToFFFD)
{
TextEncoding encoding(replacementAlias);
- std::unique_ptr<TextCodec> codec(newTextCodec(encoding));
+ OwnPtr<TextCodec> codec(newTextCodec(encoding));
bool sawError = false;
const char testCase[] = "hello world";
@@ -47,7 +47,7 @@ TEST(TextCodecReplacement, DecodesToFFFD)
TEST(TextCodecReplacement, EncodesToUTF8)
{
TextEncoding encoding(replacementAlias);
- std::unique_ptr<TextCodec> codec(newTextCodec(encoding));
+ OwnPtr<TextCodec> codec(newTextCodec(encoding));
// "Kanji" in Chinese characters.
const UChar testCase[] = { 0x6F22, 0x5B57 };
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698