| 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/download/byte_stream.h" | 5 #include "content/browser/download/byte_stream.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 | 594 |
| 595 // Immediately close the stream. | 595 // Immediately close the stream. |
| 596 byte_stream_input->Close(content::DOWNLOAD_INTERRUPT_REASON_NONE); | 596 byte_stream_input->Close(content::DOWNLOAD_INTERRUPT_REASON_NONE); |
| 597 ::testing::Mock::VerifyAndClearExpectations(task_runner.get()); | 597 ::testing::Mock::VerifyAndClearExpectations(task_runner.get()); |
| 598 EXPECT_CALL(*task_runner.get(), RunsTasksOnCurrentThread()) | 598 EXPECT_CALL(*task_runner.get(), RunsTasksOnCurrentThread()) |
| 599 .WillRepeatedly(Return(true)); | 599 .WillRepeatedly(Return(true)); |
| 600 intermediate_callback.Run(); | 600 intermediate_callback.Run(); |
| 601 EXPECT_EQ(1, num_callbacks); | 601 EXPECT_EQ(1, num_callbacks); |
| 602 } | 602 } |
| 603 | 603 |
| 604 | |
| OLD | NEW |