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/tools/flip_server/balsa_enums.h" | 12 #include "net/tools/balsa/balsa_enums.h" |
13 #include "net/tools/flip_server/balsa_headers.h" | 13 #include "net/tools/balsa/balsa_headers.h" |
14 #include "net/tools/flip_server/flip_config.h" | 14 #include "net/tools/flip_server/flip_config.h" |
15 #include "net/tools/flip_server/flip_test_utils.h" | 15 #include "net/tools/flip_server/flip_test_utils.h" |
16 #include "net/tools/flip_server/mem_cache.h" | 16 #include "net/tools/flip_server/mem_cache.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 using ::base::StringPiece; | 22 using ::base::StringPiece; |
23 using ::testing::_; | 23 using ::testing::_; |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 ASSERT_EQ(2, spdy_framer_->frames_received()); | 625 ASSERT_EQ(2, spdy_framer_->frames_received()); |
626 ASSERT_EQ(2u, actual_header_block.size()); | 626 ASSERT_EQ(2u, actual_header_block.size()); |
627 ASSERT_EQ("404 Not Found", actual_header_block["status"]); | 627 ASSERT_EQ("404 Not Found", actual_header_block["status"]); |
628 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]); | 628 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]); |
629 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size)); | 629 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size)); |
630 } | 630 } |
631 | 631 |
632 } // namespace | 632 } // namespace |
633 | 633 |
634 } // namespace net | 634 } // namespace net |
OLD | NEW |