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

Unified Diff: Source/core/html/track/vtt/VTTScannerTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitespace fix 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/core/html/track/vtt/BufferedLineReaderTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTScannerTest.cpp
diff --git a/Source/core/html/track/vtt/VTTScannerTest.cpp b/Source/core/html/track/vtt/VTTScannerTest.cpp
index 5359da9fb7d1335236d3694db8c239f53ae0ef47..3c8a4fd3e1a2f78084fbd3a4b70e6925ba35839b 100644
--- a/Source/core/html/track/vtt/VTTScannerTest.cpp
+++ b/Source/core/html/track/vtt/VTTScannerTest.cpp
@@ -31,14 +31,11 @@
#include "core/html/track/vtt/VTTScanner.h"
#include "wtf/text/WTFString.h"
-
#include <gtest/gtest.h>
-using blink::VTTScanner;
-
-namespace {
+namespace blink {
-TEST(VTTScanner, Constructor)
+TEST(VTTScannerTest, Constructor)
{
String data8("foo");
EXPECT_TRUE(data8.is8Bit());
@@ -89,7 +86,7 @@ void scanSequenceHelper1(const String& input)
// Exercises match(c) and scan(c).
-TEST(VTTScanner, BasicOperations1)
+TEST(VTTScannerTest, BasicOperations1)
{
TEST_WITH(scanSequenceHelper1, "foe");
}
@@ -110,7 +107,7 @@ void scanSequenceHelper2(const String& input)
}
// Exercises scan(<literal>[, length]).
-TEST(VTTScanner, BasicOperations2)
+TEST(VTTScannerTest, BasicOperations2)
{
TEST_WITH(scanSequenceHelper2, "foe");
}
@@ -147,7 +144,7 @@ void scanWithPredicate(const String& input)
}
// Tests skipWhile() and collectWhile().
-TEST(VTTScanner, PredicateScanning)
+TEST(VTTScannerTest, PredicateScanning)
{
TEST_WITH(scanWithPredicate, "badAbing");
}
@@ -179,7 +176,7 @@ void scanWithInvPredicate(const String& input)
}
// Tests skipUntil() and collectUntil().
-TEST(VTTScanner, InversePredicateScanning)
+TEST(VTTScannerTest, InversePredicateScanning)
{
TEST_WITH(scanWithInvPredicate, "BADaBING");
}
@@ -210,7 +207,7 @@ void scanRuns(const String& input)
}
// Tests scanRun/skipRun.
-TEST(VTTScanner, RunScanning)
+TEST(VTTScannerTest, RunScanning)
{
TEST_WITH(scanRuns, "foo:baz:bar");
}
@@ -235,7 +232,7 @@ void scanRunsToStrings(const String& input)
}
// Tests extractString.
-TEST(VTTScanner, ExtractString)
+TEST(VTTScannerTest, ExtractString)
{
TEST_WITH(scanRunsToStrings, "foo:bar");
}
@@ -252,7 +249,7 @@ void tailStringExtract(const String& input)
}
// Tests restOfInputAsString().
-TEST(VTTScanner, ExtractRestAsString)
+TEST(VTTScannerTest, ExtractRestAsString)
{
TEST_WITH(tailStringExtract, "foo:bar");
}
@@ -298,7 +295,7 @@ void scanDigits2(const String& input)
}
// Tests scanDigits().
-TEST(VTTScanner, ScanDigits)
+TEST(VTTScannerTest, ScanDigits)
{
TEST_WITH(scanDigits1, "foo 123 bar 45678");
TEST_WITH(scanDigits2, "-654 1000000000000000000");
@@ -342,11 +339,11 @@ void scanFloatValue(const String& input)
}
// Tests scanFloat().
-TEST(VTTScanner, ScanFloat)
+TEST(VTTScannerTest, ScanFloat)
{
TEST_WITH(scanFloatValue, "1. 1.0 .0 . 1.0000 01.000");
}
#undef TEST_WITH
-} // namespace
+} // namespace blink
« no previous file with comments | « Source/core/html/track/vtt/BufferedLineReaderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698