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

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

Issue 1382583002: Add toStdString methods to CString and WTF::String (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include Created 5 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
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 087cbb63634c008046a5437ad0d11cae33e1e7a8..a428bdb0707cdb87f60bdc52c5ed963f7e5e4c48 100644
--- a/third_party/WebKit/Source/wtf/text/CStringTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/CStringTest.cpp
@@ -108,7 +108,9 @@ TEST(CStringTest, CopyOnWrite)
string.mutableData()[3] = 'K';
EXPECT_TRUE(string != copy);
EXPECT_STREQ("WebKit", string.data());
+ EXPECT_EQ("WebKit", string.toStdString());
EXPECT_STREQ(initialString, copy.data());
+ EXPECT_EQ(initialString, copy.toStdString());
}
TEST(CStringTest, Comparison)

Powered by Google App Engine
This is Rietveld 408576698