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/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 Loading... |
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 |
OLD | NEW |