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

Side by Side Diff: net/tools/quic/quic_http_response_cache_test.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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
« no previous file with comments | « net/tools/quic/quic_http_response_cache.cc ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/tools/quic/quic_http_response_cache.cc ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698