| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "media/base/filters.h" | 6 #include "media/base/filters.h" |
| 7 #include "media/base/mock_callback.h" | 7 #include "media/base/mock_callback.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/Source/WebKit/chromium/public/WebURLError.h" | |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h" | |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | |
| 15 #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/WebURLError.
h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLLoader
.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
| 16 #include "webkit/media/simple_data_source.h" | 16 #include "webkit/media/simple_data_source.h" |
| 17 #include "webkit/mocks/mock_webframeclient.h" | 17 #include "webkit/mocks/mock_webframeclient.h" |
| 18 #include "webkit/mocks/mock_weburlloader.h" | 18 #include "webkit/mocks/mock_weburlloader.h" |
| 19 | 19 |
| 20 using ::testing::_; | 20 using ::testing::_; |
| 21 using ::testing::DoAll; | 21 using ::testing::DoAll; |
| 22 using ::testing::InSequence; | 22 using ::testing::InSequence; |
| 23 using ::testing::Invoke; | 23 using ::testing::Invoke; |
| 24 using ::testing::NiceMock; | 24 using ::testing::NiceMock; |
| 25 using ::testing::NotNull; | 25 using ::testing::NotNull; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 InitializeDataSource(kHttpUrl, | 274 InitializeDataSource(kHttpUrl, |
| 275 media::NewExpectedStatusCB(media::PIPELINE_OK)); | 275 media::NewExpectedStatusCB(media::PIPELINE_OK)); |
| 276 Redirect(kHttpRedirectToSameDomainUrl1); | 276 Redirect(kHttpRedirectToSameDomainUrl1); |
| 277 Redirect(kHttpRedirectToDifferentDomainUrl1); | 277 Redirect(kHttpRedirectToDifferentDomainUrl1); |
| 278 RequestSucceeded(); | 278 RequestSucceeded(); |
| 279 EXPECT_FALSE(data_source_->HasSingleOrigin()); | 279 EXPECT_FALSE(data_source_->HasSingleOrigin()); |
| 280 DestroyDataSource(); | 280 DestroyDataSource(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace webkit_media | 283 } // namespace webkit_media |
| OLD | NEW |