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 "media/base/media_log.h" | 7 #include "media/base/media_log.h" |
7 #include "media/base/mock_callback.h" | 8 #include "media/base/mock_callback.h" |
8 #include "media/base/mock_data_source_host.h" | 9 #include "media/base/mock_data_source_host.h" |
9 #include "media/base/mock_filters.h" | 10 #include "media/base/mock_filters.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
11 #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" |
12 #include "webkit/media/buffered_data_source.h" | 13 #include "webkit/media/buffered_data_source.h" |
13 #include "webkit/mocks/mock_webframeclient.h" | 14 #include "webkit/mocks/mock_webframeclient.h" |
14 #include "webkit/mocks/mock_weburlloader.h" | 15 #include "webkit/mocks/mock_weburlloader.h" |
15 #include "webkit/media/test_response_generator.h" | 16 #include "webkit/media/test_response_generator.h" |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 447 |
447 // During teardown we'll also report our final network status. | 448 // During teardown we'll also report our final network status. |
448 EXPECT_CALL(host_, SetNetworkActivity(false)); | 449 EXPECT_CALL(host_, SetNetworkActivity(false)); |
449 EXPECT_CALL(host_, SetBufferedBytes(kDataSize)); | 450 EXPECT_CALL(host_, SetBufferedBytes(kDataSize)); |
450 | 451 |
451 EXPECT_TRUE(data_source_->loading()); | 452 EXPECT_TRUE(data_source_->loading()); |
452 Stop(); | 453 Stop(); |
453 } | 454 } |
454 | 455 |
455 } // namespace webkit_media | 456 } // namespace webkit_media |
OLD | NEW |