OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "net/http/http_request_info.h" | 7 #include "net/http/http_request_info.h" |
8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
9 #include "net/http/http_vary_data.h" | 9 #include "net/http/http_vary_data.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 a.Init("Cookie: 1", "HTTP/1.1 301 Moved\nLocation: x\nVary: coOkie\n\n"); | 138 a.Init("Cookie: 1", "HTTP/1.1 301 Moved\nLocation: x\nVary: coOkie\n\n"); |
139 | 139 |
140 TestTransaction b; | 140 TestTransaction b; |
141 b.Init("Cookie: 2", "HTTP/1.1 301 Moved\nLocation: x\nVary: cooKie\n\n"); | 141 b.Init("Cookie: 2", "HTTP/1.1 301 Moved\nLocation: x\nVary: cooKie\n\n"); |
142 | 142 |
143 net::HttpVaryData v; | 143 net::HttpVaryData v; |
144 EXPECT_TRUE(v.Init(a.request, *a.response)); | 144 EXPECT_TRUE(v.Init(a.request, *a.response)); |
145 | 145 |
146 EXPECT_FALSE(v.MatchesRequest(b.request, *b.response)); | 146 EXPECT_FALSE(v.MatchesRequest(b.request, *b.response)); |
147 } | 147 } |
OLD | NEW |