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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFStringTest.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/WTFStringTest.cpp
diff --git a/third_party/WebKit/Source/wtf/text/WTFStringTest.cpp b/third_party/WebKit/Source/wtf/text/WTFStringTest.cpp
index b8adf4972f082cf86e7aa7bd79a883fda47dd305..081384c1fd3a194f5bd2a7cfba8d584bf904dfe7 100644
--- a/third_party/WebKit/Source/wtf/text/WTFStringTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/WTFStringTest.cpp
@@ -48,7 +48,7 @@ TEST(StringTest, ASCII) {
EXPECT_STREQ("", output.data());
// Empty String.
- output = emptyString().ascii();
+ output = emptyString.ascii();
EXPECT_STREQ("", output.data());
// Regular String.
@@ -489,7 +489,7 @@ TEST(StringTest, StringPrinter) {
toCStringThroughPrinter(String("\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F", 8)));
EXPECT_EQ(CString("\"\\u007F\\u0080\\u0081\""),
toCStringThroughPrinter("\x7F\x80\x81"));
- EXPECT_EQ(CString("\"\""), toCStringThroughPrinter(emptyString()));
+ EXPECT_EQ(CString("\"\""), toCStringThroughPrinter(emptyString));
EXPECT_EQ(CString("<null>"), toCStringThroughPrinter(String()));
static const UChar unicodeSample[] = {0x30C6, 0x30B9,
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698