| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stdint.h> |
| 6 |
| 5 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 6 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 7 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 8 #include "media/base/media_log.h" | 11 #include "media/base/media_log.h" |
| 9 #include "media/base/mock_filters.h" | 12 #include "media/base/mock_filters.h" |
| 10 #include "media/base/test_helpers.h" | 13 #include "media/base/test_helpers.h" |
| 11 #include "media/blink/buffered_data_source.h" | 14 #include "media/blink/buffered_data_source.h" |
| 12 #include "media/blink/mock_webframeclient.h" | 15 #include "media/blink/mock_webframeclient.h" |
| 13 #include "media/blink/mock_weburlloader.h" | 16 #include "media/blink/mock_weburlloader.h" |
| 14 #include "media/blink/test_response_generator.h" | 17 #include "media/blink/test_response_generator.h" |
| 15 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 18 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 // Read a bit from the beginning. | 1020 // Read a bit from the beginning. |
| 1018 ReadAt(0); | 1021 ReadAt(0); |
| 1019 EXPECT_CALL(*this, ReadCallback(kDataSize)); | 1022 EXPECT_CALL(*this, ReadCallback(kDataSize)); |
| 1020 EXPECT_CALL(host_, AddBufferedByteRange(0, kDataSize - 1)); | 1023 EXPECT_CALL(host_, AddBufferedByteRange(0, kDataSize - 1)); |
| 1021 ReceiveData(kDataSize); | 1024 ReceiveData(kDataSize); |
| 1022 | 1025 |
| 1023 EXPECT_FALSE(active_loader()); | 1026 EXPECT_FALSE(active_loader()); |
| 1024 } | 1027 } |
| 1025 | 1028 |
| 1026 } // namespace media | 1029 } // namespace media |
| OLD | NEW |