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

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

Issue 1184043002: Fix unit test style in Source/wtf/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apply review comments Created 5 years, 6 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 | « Source/wtf/text/StringBuilderTest.cpp ('k') | Source/wtf/text/StringOperatorsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/StringImplTest.cpp
diff --git a/Source/wtf/text/StringImplTest.cpp b/Source/wtf/text/StringImplTest.cpp
index 0997e77cce7c951934015715a1d69f7f63f284fe..3173da6f8b8d28873e4b321ad553ceb149a67a63 100644
--- a/Source/wtf/text/StringImplTest.cpp
+++ b/Source/wtf/text/StringImplTest.cpp
@@ -24,26 +24,25 @@
*/
#include "config.h"
-
#include "wtf/text/StringImpl.h"
+
#include "wtf/text/WTFString.h"
#include <gtest/gtest.h>
-namespace {
+namespace WTF {
-TEST(WTF, StringImplCreate8Bit)
+TEST(StringImplTest, Create8Bit)
{
RefPtr<StringImpl> testStringImpl = StringImpl::create("1224");
- ASSERT_TRUE(testStringImpl->is8Bit());
+ EXPECT_TRUE(testStringImpl->is8Bit());
}
-TEST(WTF, StringImplLatin1CaseFoldTable)
+TEST(StringImplTest, Latin1CaseFoldTable)
{
LChar symbol = 0xff;
while (symbol--) {
- EXPECT_EQ(WTF::Unicode::foldCase(symbol), StringImpl::latin1CaseFoldTable[symbol]);
+ EXPECT_EQ(Unicode::foldCase(symbol), StringImpl::latin1CaseFoldTable[symbol]);
}
}
-
-} // namespace
+} // namespace WTF
« no previous file with comments | « Source/wtf/text/StringBuilderTest.cpp ('k') | Source/wtf/text/StringOperatorsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698