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

Unified Diff: Source/platform/text/DateTimeFormatTest.cpp

Issue 1184673003: Fix unit test style in Source/platform/, part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/platform/text/DateTimeFormatTest.cpp
diff --git a/Source/platform/text/DateTimeFormatTest.cpp b/Source/platform/text/DateTimeFormatTest.cpp
index a6db6f503ea305df93e37411227b762bd654fb75..9facc96b571147ca995b899bf63c12c0dd85afb4 100644
--- a/Source/platform/text/DateTimeFormatTest.cpp
+++ b/Source/platform/text/DateTimeFormatTest.cpp
@@ -31,11 +31,11 @@
#include "wtf/text/StringBuilder.h"
#include <gtest/gtest.h>
-using namespace blink;
+namespace blink {
class DateTimeFormatTest : public ::testing::Test {
public:
- typedef DateTimeFormat::FieldType FieldType;
+ using FieldType = DateTimeFormat::FieldType;
struct Token {
String string;
@@ -183,7 +183,7 @@ protected:
private:
class TokenHandler : public DateTimeFormat::TokenHandler {
public:
- virtual ~TokenHandler() { }
+ ~TokenHandler() override { }
FieldType fieldType(int index) const
{
@@ -193,7 +193,7 @@ private:
Tokens tokens() const { return Tokens(m_tokens); }
private:
- virtual void visitField(FieldType fieldType, int count) override
+ void visitField(FieldType fieldType, int count) override
{
m_tokens.append(Token(fieldType, count));
}
@@ -334,4 +334,6 @@ TEST_F(DateTimeFormatTest, SingleUpperCaseInvalid)
EXPECT_EQ(DateTimeFormat::FieldTypeInvalid, single('X'));
}
+} // namespace blink
+
#endif

Powered by Google App Engine
This is Rietveld 408576698