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

Unified Diff: third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.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
Index: third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp b/third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp
index 7b977e9f3ec04738c5f93ba837b3ca759541a3aa..c733ec9816dc11eafa7f8f33328dfad56512c91d 100644
--- a/third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp
+++ b/third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp
@@ -25,7 +25,7 @@ struct ExpectedRun {
class SymbolsIteratorTest : public testing::Test {
protected:
void CheckRuns(const Vector<TestRun>& runs) {
- String text(emptyString16Bit());
+ String text(emptyString16Bit);
Vector<ExpectedRun> expect;
for (auto& run : runs) {
text.append(String::fromUTF8(run.text.c_str()));
@@ -61,7 +61,7 @@ class SymbolsIteratorTest : public testing::Test {
CheckRuns(runs);
TEST_F(SymbolsIteratorTest, Empty) {
- String empty(emptyString16Bit());
+ String empty(emptyString16Bit);
SymbolsIterator symbolsIterator(empty.characters16(), empty.length());
unsigned limit = 0;
FontFallbackPriority symbolsFont = FontFallbackPriority::Invalid;

Powered by Google App Engine
This is Rietveld 408576698