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/chromium/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 <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
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_with_source.h" | 16 #include "net/log/net_log_with_source.h" |
| 17 #include "net/spdy/chromium/spdy_buffer_producer.h" |
| 18 #include "net/spdy/chromium/spdy_stream.h" |
17 #include "net/spdy/platform/api/spdy_string.h" | 19 #include "net/spdy/platform/api/spdy_string.h" |
18 #include "net/spdy/spdy_buffer_producer.h" | |
19 #include "net/spdy/spdy_stream.h" | |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kOriginal[] = "original"; | 27 const char kOriginal[] = "original"; |
28 const char kRequeued[] = "requeued"; | 28 const char kRequeued[] = "requeued"; |
29 | 29 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 base::WeakPtr<SpdyStream> weak_stream; | 372 base::WeakPtr<SpdyStream> weak_stream; |
373 | 373 |
374 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); | 374 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream)); |
375 EXPECT_EQ(SpdyString(kRequeued), | 375 EXPECT_EQ(SpdyString(kRequeued), |
376 producer->ProduceBuffer()->GetRemainingData()); | 376 producer->ProduceBuffer()->GetRemainingData()); |
377 } | 377 } |
378 | 378 |
379 } // namespace | 379 } // namespace |
380 | 380 |
381 } // namespace net | 381 } // namespace net |
OLD | NEW |