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

Side by Side Diff: Source/core/fetch/FetchUtilsTest.cpp

Issue 1341273002: Add FetchUtils::normalizeHeaderValue( ) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/fetch/FetchUtils.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FetchUtilsTest_h
6 #define FetchUtilsTest_h
7
8 #include "config.h"
9 #include "core/fetch/FetchUtils.h"
10
11 #include "wtf/text/AtomicString.h"
12
13 #include <gtest/gtest.h>
14
15 namespace blink {
16
17 namespace {
18
19 TEST(FetchUtilsTest, NormalizeHeaderValue)
20 {
21 EXPECT_EQ("t", FetchUtils::normalizeHeaderValue(" t"));
22 EXPECT_EQ("t", FetchUtils::normalizeHeaderValue("t "));
23 EXPECT_EQ("t", FetchUtils::normalizeHeaderValue(" t "));
24 EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\r"));
25 EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\n"));
26 EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\r\n"));
27 EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test\t"));
28 EXPECT_EQ("test", FetchUtils::normalizeHeaderValue("test"));
Mike West 2015/09/21 11:31:27 Nit: Can you add leading examples of these values
Mike West 2015/09/21 11:31:27 Nit: Can you add leading examples of these values
shiva.jm 2015/09/22 06:01:09 Done.
shiva.jm 2015/09/22 06:01:09 Done.
29 }
30
31 } // namespace
32
33 } // namespace blink
34
35 #endif // FetchUtilsTest_h
OLDNEW
« no previous file with comments | « Source/core/fetch/FetchUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698