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

Issue 10698139: Write file:// tests for BufferedDataSource and fix some bugs as a result. (Closed)

Created:
8 years, 5 months ago by scherkus (not reviewing)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Write file:// tests for BufferedDataSource and fix some bugs as a result. It turns out we had two bugs in our non-HTTP code path: 1) Connection retries used the wrong start callback, which caused the loader to never get created 2) The start position for non-HTTP resources is kPositionNotSpecified, which caused us to report [-1, file size) instead of [0, file size) for buffered status BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146035

Patch Set 1 #

Patch Set 2 : remove include #

Patch Set 3 : remove blank line #

Patch Set 4 : remove buffered_bytes_ #

Total comments: 8

Patch Set 5 : commentz #

Patch Set 6 : rebase_tot #

Patch Set 7 : what the #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -54 lines) Patch
M webkit/media/buffered_data_source.h View 1 2 3 4 5 6 1 chunk +7 lines, -5 lines 0 comments Download
M webkit/media/buffered_data_source.cc View 1 2 3 4 4 chunks +10 lines, -8 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 3 4 19 chunks +175 lines, -41 lines 0 comments Download
M webkit/media/test_response_generator.h View 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/media/test_response_generator.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scherkus (not reviewing)
while I'm not super happy w/ some of the duplicated tests I tried messing around ...
8 years, 5 months ago (2012-07-10 22:18:33 UTC) #1
Ami GONE FROM CHROMIUM
I don't like the dup'd tests either, but this is clearly a uniform improvement over ...
8 years, 5 months ago (2012-07-11 00:51:54 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/10698139/diff/3006/webkit/media/buffered_data_source.cc File webkit/media/buffered_data_source.cc (right): http://codereview.chromium.org/10698139/diff/3006/webkit/media/buffered_data_source.cc#newcode610 webkit/media/buffered_data_source.cc:610: if (total_bytes_ != kPositionNotSpecified) { On 2012/07/11 00:51:54, Ami ...
8 years, 5 months ago (2012-07-11 01:10:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/10698139/13001
8 years, 5 months ago (2012-07-11 01:24:38 UTC) #4
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 02:36:03 UTC) #5
Change committed as 146035

Powered by Google App Engine
This is Rietveld 408576698