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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchUtilsTest.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 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/core/fetch/FetchUtilsTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FetchUtilsTest.cpp b/third_party/WebKit/Source/core/fetch/FetchUtilsTest.cpp
deleted file mode 100644
index faec60448fb752466a7b8e6b7acdf743afcb30cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/FetchUtilsTest.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/fetch/FetchUtils.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-namespace {
-
-TEST(FetchUtilsTest, NormalizeHeaderValue) {
- EXPECT_EQ("t", FetchUtils::normalizeHeaderValue(" t"));
- EXPECT_EQ("t", FetchUtils::normalizeHeaderValue("t "));
- EXPECT_EQ("t", FetchUtils::normalizeHeaderValue(" t "));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\r"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\n"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\r\n"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\t"));
- EXPECT_EQ("t t", FetchUtils::normalizeHeaderValue("t t"));
- EXPECT_EQ("t\tt", FetchUtils::normalizeHeaderValue("t\tt"));
- EXPECT_EQ("t\rt", FetchUtils::normalizeHeaderValue("t\rt"));
- EXPECT_EQ("t\nt", FetchUtils::normalizeHeaderValue("t\nt"));
- EXPECT_EQ("t\r\nt", FetchUtils::normalizeHeaderValue("t\r\nt"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("\rtest"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("\ntest"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("\r\ntest"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("\ttest"));
- EXPECT_EQ("", FetchUtils::normalizeHeaderValue(""));
- EXPECT_EQ("", FetchUtils::normalizeHeaderValue(" "));
- EXPECT_EQ("", FetchUtils::normalizeHeaderValue("\r\n\r\n\r\n"));
- EXPECT_EQ("\xd0\xa1", FetchUtils::normalizeHeaderValue("\xd0\xa1"));
- EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test"));
-}
-
-} // namespace
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchUtils.cpp ('k') | third_party/WebKit/Source/core/fetch/IntegrityMetadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698