| 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 "base/callback.h" | 5 #include "base/callback.h" |
| 6 #include "media/base/filters.h" | 6 #include "media/base/filters.h" |
| 7 #include "media/base/mock_filter_host.h" | 7 #include "media/base/mock_filter_host.h" |
| 8 #include "media/base/mock_filters.h" | 8 #include "media/base/mock_filters.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.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/WebURLLoader.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoader.h" |
| 13 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
| 14 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
| 15 #include "webkit/glue/media/simple_data_source.h" | 15 #include "webkit/glue/media/simple_data_source.h" |
| 16 #include "webkit/glue/mock_webframe.h" | 16 #include "webkit/mocks/mock_webframe.h" |
| 17 #include "webkit/glue/mock_weburlloader_impl.h" | 17 #include "webkit/mocks/mock_weburlloader.h" |
| 18 | 18 |
| 19 using ::testing::_; | 19 using ::testing::_; |
| 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::NiceMock; | 23 using ::testing::NiceMock; |
| 24 using ::testing::NotNull; | 24 using ::testing::NotNull; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| 26 using ::testing::SetArgumentPointee; | 26 using ::testing::SetArgumentPointee; |
| 27 using ::testing::StrictMock; | 27 using ::testing::StrictMock; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 215 } |
| 216 | 216 |
| 217 TEST_F(SimpleDataSourceTest, AsyncRead) { | 217 TEST_F(SimpleDataSourceTest, AsyncRead) { |
| 218 InitializeDataSource(kFileUrl); | 218 InitializeDataSource(kFileUrl); |
| 219 RequestSucceeded(true); | 219 RequestSucceeded(true); |
| 220 AsyncRead(); | 220 AsyncRead(); |
| 221 DestroyDataSource(); | 221 DestroyDataSource(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace webkit_glue | 224 } // namespace webkit_glue |
| OLD | NEW |