| 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/quic/quic_headers_stream.h" | 5 #include "net/quic/quic_headers_stream.h" |
| 6 | 6 |
| 7 #include "net/quic/quic_utils.h" | 7 #include "net/quic/quic_utils.h" |
| 8 #include "net/quic/spdy_utils.h" | 8 #include "net/quic/spdy_utils.h" |
| 9 #include "net/quic/test_tools/quic_connection_peer.h" | 9 #include "net/quic/test_tools/quic_connection_peer.h" |
| 10 #include "net/quic/test_tools/quic_session_peer.h" | 10 #include "net/quic/test_tools/quic_session_peer.h" |
| 11 #include "net/quic/test_tools/quic_test_utils.h" | 11 #include "net/quic/test_tools/quic_test_utils.h" |
| 12 #include "net/spdy/spdy_protocol.h" | 12 #include "net/spdy/spdy_protocol.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using base::StringPiece; | 15 using base::StringPiece; |
| 16 using std::string; | 16 using std::string; |
| 17 using testing::Invoke; | 17 using testing::Invoke; |
| 18 using testing::Return; | |
| 19 using testing::StrictMock; | 18 using testing::StrictMock; |
| 20 using testing::WithArgs; | 19 using testing::WithArgs; |
| 21 using testing::_; | 20 using testing::_; |
| 22 | 21 |
| 23 namespace net { | 22 namespace net { |
| 24 namespace test { | 23 namespace test { |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 class MockVisitor : public SpdyFramerVisitorInterface { | 26 class MockVisitor : public SpdyFramerVisitorInterface { |
| 28 public: | 27 public: |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 QUIC_INVALID_HEADERS_STREAM_DATA, | 311 QUIC_INVALID_HEADERS_STREAM_DATA, |
| 313 "SPDY WINDOW_UPDATE frame received.")) | 312 "SPDY WINDOW_UPDATE frame received.")) |
| 314 .WillOnce(InvokeWithoutArgs(this, | 313 .WillOnce(InvokeWithoutArgs(this, |
| 315 &QuicHeadersStreamTest::CloseConnection)); | 314 &QuicHeadersStreamTest::CloseConnection)); |
| 316 headers_stream_->ProcessRawData(frame->data(), frame->size()); | 315 headers_stream_->ProcessRawData(frame->data(), frame->size()); |
| 317 } | 316 } |
| 318 | 317 |
| 319 } // namespace | 318 } // namespace |
| 320 } // namespace test | 319 } // namespace test |
| 321 } // namespace net | 320 } // namespace net |
| OLD | NEW |