| 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 "content/browser/byte_stream.h" | 5 #include "content/browser/byte_stream.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <deque> | 9 #include <deque> |
| 8 #include <limits> | 10 #include <limits> |
| 9 | 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 13 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
| 14 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 18 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 590 |
| 589 // The first write is below PostToPeer threshold. We shouldn't get anything | 591 // The first write is below PostToPeer threshold. We shouldn't get anything |
| 590 // from the output. | 592 // from the output. |
| 591 scoped_refptr<net::IOBuffer> output_io_buffer; | 593 scoped_refptr<net::IOBuffer> output_io_buffer; |
| 592 size_t output_length; | 594 size_t output_length; |
| 593 EXPECT_EQ(ByteStreamReader::STREAM_EMPTY, | 595 EXPECT_EQ(ByteStreamReader::STREAM_EMPTY, |
| 594 byte_stream_output->Read(&output_io_buffer, &output_length)); | 596 byte_stream_output->Read(&output_io_buffer, &output_length)); |
| 595 } | 597 } |
| 596 | 598 |
| 597 } // namespace content | 599 } // namespace content |
| OLD | NEW |