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_data_source_host.h" | 8 #include "media/base/mock_data_source_host.h" |
9 #include "media/base/mock_filters.h" | 9 #include "media/base/mock_filters.h" |
10 #include "media/base/test_helpers.h" | 10 #include "media/base/test_helpers.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 11 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.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; |
21 using ::testing::InSequence; | 21 using ::testing::InSequence; |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 InitializeWithFileResponse(); | 648 InitializeWithFileResponse(); |
649 | 649 |
650 EXPECT_FALSE(data_source_->downloading()); | 650 EXPECT_FALSE(data_source_->downloading()); |
651 FinishLoading(); | 651 FinishLoading(); |
652 EXPECT_FALSE(data_source_->downloading()); | 652 EXPECT_FALSE(data_source_->downloading()); |
653 | 653 |
654 Stop(); | 654 Stop(); |
655 } | 655 } |
656 | 656 |
657 } // namespace webkit_media | 657 } // namespace webkit_media |
OLD | NEW |