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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 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/StringBufferTest.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringBufferTest.cpp b/third_party/WebKit/Source/wtf/text/StringBufferTest.cpp
index 014b8fab1bb4937064cbb1c0107a042720cf0f0c..1d22521607e86ebb24ac0612a6ab40f094d50c2e 100644
--- a/third_party/WebKit/Source/wtf/text/StringBufferTest.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringBufferTest.cpp
@@ -10,34 +10,32 @@
namespace WTF {
-TEST(StringBufferTest, Initial)
-{
- StringBuffer<LChar> buf1;
- EXPECT_EQ(0u, buf1.length());
- EXPECT_FALSE(buf1.characters());
-
- StringBuffer<LChar> buf2(0);
- EXPECT_EQ(0u, buf2.length());
- EXPECT_FALSE(buf2.characters());
-
- StringBuffer<LChar> buf3(1);
- EXPECT_EQ(1u, buf3.length());
- EXPECT_TRUE(buf3.characters());
+TEST(StringBufferTest, Initial) {
+ StringBuffer<LChar> buf1;
+ EXPECT_EQ(0u, buf1.length());
+ EXPECT_FALSE(buf1.characters());
+
+ StringBuffer<LChar> buf2(0);
+ EXPECT_EQ(0u, buf2.length());
+ EXPECT_FALSE(buf2.characters());
+
+ StringBuffer<LChar> buf3(1);
+ EXPECT_EQ(1u, buf3.length());
+ EXPECT_TRUE(buf3.characters());
}
-TEST(StringBufferTest, shrink)
-{
- StringBuffer<LChar> buf(2);
- EXPECT_EQ(2u, buf.length());
- buf[0] = 'a';
- buf[1] = 'b';
+TEST(StringBufferTest, shrink) {
+ StringBuffer<LChar> buf(2);
+ EXPECT_EQ(2u, buf.length());
+ buf[0] = 'a';
+ buf[1] = 'b';
- buf.shrink(1);
- EXPECT_EQ(1u, buf.length());
- EXPECT_EQ('a', buf[0]);
+ buf.shrink(1);
+ EXPECT_EQ(1u, buf.length());
+ EXPECT_EQ('a', buf[0]);
- buf.shrink(0);
- EXPECT_EQ(0u, buf.length());
+ buf.shrink(0);
+ EXPECT_EQ(0u, buf.length());
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringBuffer.h ('k') | third_party/WebKit/Source/wtf/text/StringBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698