| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "HTTPParsers.h" | 6 #include "HTTPParsers.h" |
| 7 | 7 |
| 8 #include "wtf/MathExtras.h" | 8 #include "wtf/MathExtras.h" |
| 9 #include "wtf/testing/WTFTestHelpers.h" | |
| 10 #include "wtf/text/AtomicString.h" | 9 #include "wtf/text/AtomicString.h" |
| 11 | 10 |
| 12 #include <gtest/gtest.h> | 11 #include <gtest/gtest.h> |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 size_t parseHTTPHeader(const char* data, String& failureReason, AtomicString& na
meStr, AtomicString& valueStr) | 17 size_t parseHTTPHeader(const char* data, String& failureReason, AtomicString& na
meStr, AtomicString& valueStr) |
| 19 { | 18 { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 EXPECT_FALSE(set2.contains("dpr")); | 234 EXPECT_FALSE(set2.contains("dpr")); |
| 236 EXPECT_FALSE(set2.contains("rw")); | 235 EXPECT_FALSE(set2.contains("rw")); |
| 237 EXPECT_FALSE(set2.contains("whatever")); | 236 EXPECT_FALSE(set2.contains("whatever")); |
| 238 EXPECT_TRUE(set2.contains("dprw")); | 237 EXPECT_TRUE(set2.contains("dprw")); |
| 239 EXPECT_FALSE(set2.contains("foo")); | 238 EXPECT_FALSE(set2.contains("foo")); |
| 240 EXPECT_TRUE(set2.contains("fo\to")); | 239 EXPECT_TRUE(set2.contains("fo\to")); |
| 241 } | 240 } |
| 242 | 241 |
| 243 } // namespace blink | 242 } // namespace blink |
| 244 | 243 |
| OLD | NEW |