| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
| 8 #include "media/base/mock_filter_host.h" | 8 #include "media/base/mock_filter_host.h" |
| 9 #include "media/base/mock_filters.h" | 9 #include "media/base/mock_filters.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 11 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" |
| 12 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
| 13 #include "webkit/glue/media/buffered_data_source.h" | 13 #include "webkit/glue/media/buffered_data_source.h" |
| 14 #include "webkit/glue/mock_webframe.h" | 14 #include "webkit/mocks/mock_webframe.h" |
| 15 | 15 |
| 16 using ::testing::_; | 16 using ::testing::_; |
| 17 using ::testing::Assign; | 17 using ::testing::Assign; |
| 18 using ::testing::AtLeast; | 18 using ::testing::AtLeast; |
| 19 using ::testing::DeleteArg; | 19 using ::testing::DeleteArg; |
| 20 using ::testing::DoAll; | 20 using ::testing::DoAll; |
| 21 using ::testing::InSequence; | 21 using ::testing::InSequence; |
| 22 using ::testing::Invoke; | 22 using ::testing::Invoke; |
| 23 using ::testing::InvokeWithoutArgs; | 23 using ::testing::InvokeWithoutArgs; |
| 24 using ::testing::NotNull; | 24 using ::testing::NotNull; |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 StopDataSource(); | 495 StopDataSource(); |
| 496 } | 496 } |
| 497 | 497 |
| 498 TEST_F(BufferedDataSourceTest, FileHasLoadedState) { | 498 TEST_F(BufferedDataSourceTest, FileHasLoadedState) { |
| 499 InitializeDataSource(kFileUrl, net::OK, true, 1024, LOADED); | 499 InitializeDataSource(kFileUrl, net::OK, true, 1024, LOADED); |
| 500 ReadDataSourceTimesOut(20, 10); | 500 ReadDataSourceTimesOut(20, 10); |
| 501 StopDataSource(); | 501 StopDataSource(); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // namespace webkit_glue | 504 } // namespace webkit_glue |
| OLD | NEW |