OLD | NEW |
---|---|
(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 | |
OLD | NEW |