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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "media/base/media_log.h" | 7 #include "media/base/media_log.h" |
8 #include "media/base/mock_callback.h" | |
9 #include "media/base/mock_data_source_host.h" | 8 #include "media/base/mock_data_source_host.h" |
10 #include "media/base/mock_filters.h" | 9 #include "media/base/mock_filters.h" |
| 10 #include "media/base/test_helpers.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
13 #include "webkit/media/buffered_data_source.h" | 13 #include "webkit/media/buffered_data_source.h" |
14 #include "webkit/mocks/mock_webframeclient.h" | 14 #include "webkit/mocks/mock_webframeclient.h" |
15 #include "webkit/mocks/mock_weburlloader.h" | 15 #include "webkit/mocks/mock_weburlloader.h" |
16 #include "webkit/media/test_response_generator.h" | 16 #include "webkit/media/test_response_generator.h" |
17 | 17 |
18 using ::testing::_; | 18 using ::testing::_; |
19 using ::testing::Assign; | 19 using ::testing::Assign; |
20 using ::testing::Invoke; | 20 using ::testing::Invoke; |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 InitializeWithFileResponse(); | 647 InitializeWithFileResponse(); |
648 | 648 |
649 EXPECT_FALSE(data_source_->downloading()); | 649 EXPECT_FALSE(data_source_->downloading()); |
650 FinishLoading(); | 650 FinishLoading(); |
651 EXPECT_FALSE(data_source_->downloading()); | 651 EXPECT_FALSE(data_source_->downloading()); |
652 | 652 |
653 Stop(); | 653 Stop(); |
654 } | 654 } |
655 | 655 |
656 } // namespace webkit_media | 656 } // namespace webkit_media |
OLD | NEW |