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

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

Issue 2345893002: Make CString more similar to WTF::String. (Closed)
Patch Set: asserts. Created 4 years, 3 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/CString.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/CStringTest.cpp
diff --git a/third_party/WebKit/Source/wtf/text/CStringTest.cpp b/third_party/WebKit/Source/wtf/text/CStringTest.cpp
index 0abb4601803b5f37d29c2e59fc194777658e541a..7cdb4896c78b368a2cdbe633f02961cd9c76bbe8 100644
--- a/third_party/WebKit/Source/wtf/text/CStringTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/CStringTest.cpp
@@ -111,18 +111,6 @@ TEST(CStringTest, ZeroTerminated)
EXPECT_EQ(0, stringWithLength.data()[3]);
}
-TEST(CStringTest, CopyOnWrite)
-{
- const char* initialString = "Webkit";
- CString string(initialString);
- CString copy = string;
-
- string.mutableData()[3] = 'K';
- EXPECT_TRUE(string != copy);
- EXPECT_STREQ("WebKit", string.data());
- EXPECT_STREQ(initialString, copy.data());
-}
-
TEST(CStringTest, Comparison)
{
// Comparison with another CString.
« no previous file with comments | « third_party/WebKit/Source/wtf/text/CString.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698