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

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

Issue 2624443003: Enable ThreadRestrictionVerifier for StringImpl (Closed)
Patch Set: minimal const peppering 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/wtf/text/StringImplTest.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringImplTest.cpp b/third_party/WebKit/Source/wtf/text/StringImplTest.cpp
index 7dab3d9457f54d163f41e187dd636b26d7fe7004..9843a07eb4df4df003404130bdc5736bf335ead4 100644
--- a/third_party/WebKit/Source/wtf/text/StringImplTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringImplTest.cpp
@@ -89,6 +89,9 @@ TEST(StringImplTest, LowerASCII) {
static const UChar testWithNonASCIICapitalized[3] = {0x0041, 0x00e1,
0}; // A\xE1
+ // Make sure we support RefPtr<const StringImpl>.
+ RefPtr<const StringImpl> constRef = testStringImpl->isolatedCopy();
+ DCHECK(constRef->hasOneRef());
EXPECT_TRUE(equal(
StringImpl::create(testWithNonASCII, 2).get(),
StringImpl::create(testWithNonASCIICapitalized, 2)->lowerASCII().get()));

Powered by Google App Engine
This is Rietveld 408576698