| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/spdy/spdy_write_queue.h" | 5 #include "net/spdy/spdy_write_queue.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 15 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
| 16 #include "net/log/net_log.h" | 15 #include "net/log/net_log.h" |
| 17 #include "net/spdy/spdy_buffer_producer.h" | 16 #include "net/spdy/spdy_buffer_producer.h" |
| 18 #include "net/spdy/spdy_stream.h" | 17 #include "net/spdy/spdy_stream.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 21 | 20 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 scoped_ptr<SpdyBufferProducer> producer; | 364 scoped_ptr<SpdyBufferProducer> producer; |
| 366 base::WeakPtr<SpdyStream> weak_stream; | 365 base::WeakPtr<SpdyStream> weak_stream; |
| 367 | 366 |
| 368 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); | 367 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); |
| 369 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData()); | 368 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData()); |
| 370 } | 369 } |
| 371 | 370 |
| 372 } // namespace | 371 } // namespace |
| 373 | 372 |
| 374 } // namespace net | 373 } // namespace net |
| OLD | NEW |