| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "net/tools/quic/quic_http_response_cache.h" | 5 #include "net/tools/quic/quic_http_response_cache.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "net/quic/platform/api/quic_map_util.h" | 9 #include "net/quic/platform/api/quic_map_util.h" |
| 10 #include "net/quic/platform/api/quic_str_cat.h" | 10 #include "net/quic/platform/api/quic_str_cat.h" |
| 11 #include "net/quic/platform/api/quic_text_utils.h" | 11 #include "net/quic/platform/api/quic_text_utils.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using base::StringPiece; | |
| 15 using std::string; | 14 using std::string; |
| 16 | 15 |
| 17 namespace net { | 16 namespace net { |
| 18 namespace test { | 17 namespace test { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 typedef QuicHttpResponseCache::Response Response; | 20 typedef QuicHttpResponseCache::Response Response; |
| 22 typedef QuicHttpResponseCache::ServerPushInfo ServerPushInfo; | 21 typedef QuicHttpResponseCache::ServerPushInfo ServerPushInfo; |
| 23 }; // namespace | 22 }; // namespace |
| 24 | 23 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 ASSERT_TRUE(QuicContainsKey(response->headers(), ":status")); | 237 ASSERT_TRUE(QuicContainsKey(response->headers(), ":status")); |
| 239 EXPECT_EQ(push_response_status[i++], | 238 EXPECT_EQ(push_response_status[i++], |
| 240 response->headers().find(":status")->second); | 239 response->headers().find(":status")->second); |
| 241 EXPECT_EQ(push_resource.body, response->body()); | 240 EXPECT_EQ(push_resource.body, response->body()); |
| 242 resources.pop_front(); | 241 resources.pop_front(); |
| 243 } | 242 } |
| 244 } | 243 } |
| 245 | 244 |
| 246 } // namespace test | 245 } // namespace test |
| 247 } // namespace net | 246 } // namespace net |
| OLD | NEW |