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

Side by Side Diff: Source/platform/network/HTTPParsersTest.cpp

Issue 1257203002: Fix ODR violation that can break WTF::String pretty printing in tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Really fix Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698