| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 #include "net/base/net_log_unittest.h" | 10 #include "net/base/net_log_unittest.h" |
| 11 #include "net/base/request_priority.h" | 11 #include "net/base/request_priority.h" |
| 12 #include "net/spdy/buffered_spdy_framer.h" | 12 #include "net/spdy/buffered_spdy_framer.h" |
| 13 #include "net/spdy/spdy_stream.h" | |
| 14 #include "net/spdy/spdy_http_utils.h" | 13 #include "net/spdy/spdy_http_utils.h" |
| 15 #include "net/spdy/spdy_protocol.h" | 14 #include "net/spdy/spdy_protocol.h" |
| 16 #include "net/spdy/spdy_session.h" | 15 #include "net/spdy/spdy_session.h" |
| 16 #include "net/spdy/spdy_stream.h" |
| 17 #include "net/spdy/spdy_stream_test_util.h" | 17 #include "net/spdy/spdy_stream_test_util.h" |
| 18 #include "net/spdy/spdy_test_util_common.h" | 18 #include "net/spdy/spdy_test_util_common.h" |
| 19 #include "net/spdy/spdy_test_util_spdy3.h" | 19 #include "net/spdy/spdy_test_util_spdy3.h" |
| 20 #include "net/spdy/spdy_websocket_test_util_spdy3.h" | 20 #include "net/spdy/spdy_websocket_test_util_spdy3.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 using namespace net::test_spdy3; | 23 using namespace net::test_spdy3; |
| 24 | 24 |
| 25 // TODO(ukai): factor out common part with spdy_http_stream_unittest.cc | 25 // TODO(ukai): factor out common part with spdy_http_stream_unittest.cc |
| 26 // | 26 // |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 EXPECT_EQ("HTTP/1.1", delegate.GetResponseHeaderValue(":version")); | 571 EXPECT_EQ("HTTP/1.1", delegate.GetResponseHeaderValue(":version")); |
| 572 EXPECT_EQ(std::string(kPostBody, kPostBodyLength), delegate.received_data()); | 572 EXPECT_EQ(std::string(kPostBody, kPostBodyLength), delegate.received_data()); |
| 573 EXPECT_EQ(static_cast<int>(kPostBodyLength), delegate.body_data_sent()); | 573 EXPECT_EQ(static_cast<int>(kPostBodyLength), delegate.body_data_sent()); |
| 574 } | 574 } |
| 575 | 575 |
| 576 } // namespace | 576 } // namespace |
| 577 | 577 |
| 578 } // namespace test | 578 } // namespace test |
| 579 | 579 |
| 580 } // namespace net | 580 } // namespace net |
| OLD | NEW |