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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "media/base/media_log.h" | 11 #include "media/base/media_log.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/http/http_request_headers.h" | 13 #include "net/http/http_request_headers.h" |
14 #include "net/http/http_util.h" | 14 #include "net/http/http_util.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.
h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
21 #include "webkit/media/buffered_resource_loader.h" | 21 #include "webkit/media/buffered_resource_loader.h" |
22 #include "webkit/mocks/mock_webframeclient.h" | 22 #include "webkit/mocks/mock_webframeclient.h" |
23 #include "webkit/mocks/mock_weburlloader.h" | 23 #include "webkit/mocks/mock_weburlloader.h" |
24 | 24 |
25 using ::testing::InSequence; | 25 using ::testing::InSequence; |
26 using ::testing::Return; | 26 using ::testing::Return; |
27 using ::testing::Truly; | 27 using ::testing::Truly; |
28 using ::testing::NiceMock; | 28 using ::testing::NiceMock; |
29 | 29 |
30 using WebKit::WebString; | 30 using WebKit::WebString; |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 | 1086 |
1087 TEST_F(BufferedResourceLoaderTest, BufferWindow_PlaybackRate_AboveUpperBound) { | 1087 TEST_F(BufferedResourceLoaderTest, BufferWindow_PlaybackRate_AboveUpperBound) { |
1088 Initialize(kHttpUrl, -1, -1); | 1088 Initialize(kHttpUrl, -1, -1); |
1089 Start(); | 1089 Start(); |
1090 loader_->SetPlaybackRate(100); | 1090 loader_->SetPlaybackRate(100); |
1091 CheckBufferWindowBounds(); | 1091 CheckBufferWindowBounds(); |
1092 StopWhenLoad(); | 1092 StopWhenLoad(); |
1093 } | 1093 } |
1094 | 1094 |
1095 } // namespace webkit_media | 1095 } // namespace webkit_media |
OLD | NEW |