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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 8 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/platform/network/HTTPParsersTest.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp b/third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp
index a4a55553ef0f559fe91268e8288283418101c90a..8be3e53cec47f1c1b7f0d98589cb331c14938f09 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp
@@ -500,4 +500,503 @@ TEST(HTTPParsersTest, ParseMultipartHeadersContentCharset) {
EXPECT_EQ("utf-8", response.TextEncodingName());
}
+TEST(HTTPParsersTest, CheckDoubleQuotedString) {
+ EXPECT_EQ(CheckDoubleQuotedString(""), "");
+ EXPECT_EQ(CheckDoubleQuotedString("\""), "\"");
+ EXPECT_EQ(CheckDoubleQuotedString("\"\""), "");
+ EXPECT_EQ(CheckDoubleQuotedString("foo"), "foo");
+ EXPECT_EQ(CheckDoubleQuotedString("\"foo"), "\"foo");
+ EXPECT_EQ(CheckDoubleQuotedString("foo\""), "foo\"");
+ EXPECT_EQ(CheckDoubleQuotedString("\"foo\""), "foo");
+ EXPECT_EQ(CheckDoubleQuotedString("\"foo\"bar\""), "foo\"bar");
+ EXPECT_EQ(CheckDoubleQuotedString("\"foo\\bar\""), "foobar");
+}
+
+void testServerTimingHeader(const char* headerValue,
+ Vector<Vector<String>> expectedResults) {
+ std::unique_ptr<ServerTimingHeaderVector> results =
+ ParseServerTimingHeader(headerValue);
+ EXPECT_EQ((*results).size(), expectedResults.size());
+ unsigned i = 0;
+ for (const auto& header : *results) {
+ Vector<String> expectedResult = expectedResults[i++];
+ EXPECT_EQ(header->metric, expectedResult[0]);
+ EXPECT_EQ(header->duration, expectedResult[1].ToDouble());
+ EXPECT_EQ(header->description, expectedResult[2]);
+ }
+}
+
+TEST(HTTPParsersTest, ParseServerTimingHeader) {
+ testServerTimingHeader("", {});
+ testServerTimingHeader("metric", {{"metric", "0", ""}});
+ testServerTimingHeader("metric,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric ;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric ;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=", {{"metric", "0", ""}});
+ testServerTimingHeader("metric=,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric= ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric=;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric=;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric=; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric= ;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric= ;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric= ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric=;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric= ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =", {{"metric", "0", ""}});
+ testServerTimingHeader("metric =,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric = ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric =;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric =;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric =; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric = ;", {{"metric", "0", ""}});
+ testServerTimingHeader("metric = ;,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric = ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader("metric =;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric =; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric = ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader("metric=123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric=123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric=123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric =123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric =123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric= 123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric= 123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader("metric = 123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader("metric = 123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric ;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric ;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric=,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric= ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric=;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric=;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric=; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric= ;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric= ;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric= ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric=;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric= ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric =,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric = ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric =;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric =;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric =; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric = ;", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric = ;,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric = ; ,", {{"metric", "0", ""}});
+ testServerTimingHeader(" metric =;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ;description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ;description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ;description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric =; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ; description",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ; description,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric = ; description ,",
+ {{"metric", "0", "description"}});
+ testServerTimingHeader(" metric=123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric=123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric=123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric =123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric =123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric= 123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric= 123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4 ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4 ;", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4 ;,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4 ; ,", {{"metric", "123.4", ""}});
+ testServerTimingHeader(" metric = 123.4;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ;description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ;description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ;description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4; description ,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ; description",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ; description,",
+ {{"metric", "123.4", "description"}});
+ testServerTimingHeader(" metric = 123.4 ; description ,",
+ {{"metric", "123.4", "description"}});
+
+ testServerTimingHeader(
+ "metric1=12.3;description1,metric2=45.6;description2,metric3=78.9;"
+ "description3",
+ {{"metric1", "12.3", "description1"},
+ {"metric2", "45.6", "description2"},
+ {"metric3", "78.9", "description3"}});
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698