| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "net/base/request_priority.h" | 15 #include "net/base/request_priority.h" |
| 16 #include "net/log/net_log.h" | 16 #include "net/log/net_log_with_source.h" |
| 17 #include "net/spdy/spdy_buffer_producer.h" | 17 #include "net/spdy/spdy_buffer_producer.h" |
| 18 #include "net/spdy/spdy_stream.h" | 18 #include "net/spdy/spdy_stream.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 using std::string; | 26 using std::string; |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 std::unique_ptr<SpdyBufferProducer> producer; | 361 std::unique_ptr<SpdyBufferProducer> producer; |
| 362 base::WeakPtr<SpdyStream> weak_stream; | 362 base::WeakPtr<SpdyStream> weak_stream; |
| 363 | 363 |
| 364 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); | 364 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); |
| 365 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData()); | 365 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData()); |
| 366 } | 366 } |
| 367 | 367 |
| 368 } // namespace | 368 } // namespace |
| 369 | 369 |
| 370 } // namespace net | 370 } // namespace net |
| OLD | NEW |