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

Side by Side Diff: net/tools/flip_server/spdy_interface_test.cc

Issue 1357953002: Replace the existing SpdyHeaderBlock typedef with a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NET_EXPORT to fix compile error on win_chromium_compile_dbg_ng. Created 5 years, 2 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/flip_server/spdy_interface.cc ('k') | net/tools/quic/quic_client_bin.cc » ('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/flip_server/spdy_interface.h" 5 #include "net/tools/flip_server/spdy_interface.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "net/spdy/buffered_spdy_framer.h" 11 #include "net/spdy/buffered_spdy_framer.h"
12 #include "net/spdy/spdy_test_utils.h"
12 #include "net/tools/balsa/balsa_enums.h" 13 #include "net/tools/balsa/balsa_enums.h"
13 #include "net/tools/balsa/balsa_headers.h" 14 #include "net/tools/balsa/balsa_headers.h"
14 #include "net/tools/flip_server/flip_config.h" 15 #include "net/tools/flip_server/flip_config.h"
15 #include "net/tools/flip_server/flip_test_utils.h" 16 #include "net/tools/flip_server/flip_test_utils.h"
16 #include "net/tools/flip_server/mem_cache.h" 17 #include "net/tools/flip_server/mem_cache.h"
17 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 namespace net { 21 namespace net {
21 22
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 ASSERT_EQ(2, spdy_framer_->frames_received()); 604 ASSERT_EQ(2, spdy_framer_->frames_received());
604 ASSERT_EQ(2u, actual_header_block.size()); 605 ASSERT_EQ(2u, actual_header_block.size());
605 ASSERT_EQ("404 Not Found", actual_header_block["status"]); 606 ASSERT_EQ("404 Not Found", actual_header_block["status"]);
606 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]); 607 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]);
607 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size)); 608 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size));
608 } 609 }
609 610
610 } // namespace 611 } // namespace
611 612
612 } // namespace net 613 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/flip_server/spdy_interface.cc ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698