Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: webkit/media/buffered_resource_loader_unittest.cc

Issue 9836102: Fold WebDataSource into BufferedDataSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: dcheck-o-rama Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/media/buffered_resource_loader.cc ('k') | webkit/media/web_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <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/message_loop.h"
10 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
11 #include "media/base/media_log.h" 12 #include "media/base/media_log.h"
12 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
13 #include "net/http/http_request_headers.h" 14 #include "net/http/http_request_headers.h"
14 #include "net/http/http_util.h" 15 #include "net/http/http_util.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 17 #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/WebString.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError. h" 19 #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/WebURLReques t.h"
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 ExpectContentRangeFailure("bytes 20-10/400"); 1148 ExpectContentRangeFailure("bytes 20-10/400");
1148 1149
1149 ExpectContentRangeSuccess("bytes 0-499/500", 0, 499, 500); 1150 ExpectContentRangeSuccess("bytes 0-499/500", 0, 499, 500);
1150 ExpectContentRangeSuccess("bytes 0-0/500", 0, 0, 500); 1151 ExpectContentRangeSuccess("bytes 0-0/500", 0, 0, 500);
1151 ExpectContentRangeSuccess("bytes 10-11/50", 10, 11, 50); 1152 ExpectContentRangeSuccess("bytes 10-11/50", 10, 11, 50);
1152 ExpectContentRangeSuccess("bytes 10-11/*", 10, 11, 1153 ExpectContentRangeSuccess("bytes 10-11/*", 10, 11,
1153 kPositionNotSpecified); 1154 kPositionNotSpecified);
1154 } 1155 }
1155 1156
1156 } // namespace webkit_media 1157 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/media/buffered_resource_loader.cc ('k') | webkit/media/web_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698