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

Issue 8649002: Rewrite BufferedDataSource tests to use real BufferedResourceLoader objects. (Closed)

Created:
9 years, 1 month ago by scherkus (not reviewing)
Modified:
9 years ago
CC:
chromium-reviews, hclam+watch_chromium.org, Alexander Potapenko, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, Paweł Hajdan Jr., Timur Iskhodzhanov, annacc+watch_chromium.org, pam+watch_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), stuartmorgan+watch_chromium.org, scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Rewrite BufferedDataSource tests to use real BufferedResourceLoader objects. The new tests expose the very real memory leak described in bug 100914. The fix for the leak is non trivial and will be addressed in a follow up patch. BUG=100914 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112043

Patch Set 1 #

Patch Set 2 : comments #

Patch Set 3 : good #

Patch Set 4 : bam #

Total comments: 23

Patch Set 5 : comments #

Total comments: 2

Patch Set 6 : moar better tests #

Patch Set 7 : forgot a few #

Total comments: 11

Patch Set 8 : vrk comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -616 lines) Patch
M tools/valgrind/memcheck/suppressions.txt View 1 2 3 4 5 1 chunk +1 line, -9 lines 0 comments Download
M webkit/media/buffered_data_source.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 6 chunks +271 lines, -605 lines 0 comments Download
M webkit/media/buffered_resource_loader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A webkit/media/test_response_generator.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A webkit/media/test_response_generator.cc View 1 2 3 4 5 1 chunk +84 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scherkus (not reviewing)
fischman/vrk: PTAL the diff might be kind of useless but I swear the new tests ...
9 years, 1 month ago (2011-11-22 21:12:45 UTC) #1
Ami GONE FROM CHROMIUM
Nice! http://codereview.chromium.org/8649002/diff/17/tools/valgrind/memcheck/suppressions.txt File tools/valgrind/memcheck/suppressions.txt (right): http://codereview.chromium.org/8649002/diff/17/tools/valgrind/memcheck/suppressions.txt#newcode4700 tools/valgrind/memcheck/suppressions.txt:4700: fun:_ZN12webkit_media18BufferedDataSource20CreateResourceLoaderEll Here and below it seems strange to ...
9 years, 1 month ago (2011-11-22 22:06:23 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/8649002/diff/17/tools/valgrind/memcheck/suppressions.txt File tools/valgrind/memcheck/suppressions.txt (right): http://codereview.chromium.org/8649002/diff/17/tools/valgrind/memcheck/suppressions.txt#newcode4700 tools/valgrind/memcheck/suppressions.txt:4700: fun:_ZN12webkit_media18BufferedDataSource20CreateResourceLoaderEll On 2011/11/22 22:06:23, Ami Fischman wrote: > Here ...
9 years, 1 month ago (2011-11-23 04:22:41 UTC) #3
Ami GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/8649002/diff/17/webkit/media/buffered_data_source_unittest.cc File webkit/media/buffered_data_source_unittest.cc (right): http://codereview.chromium.org/8649002/diff/17/webkit/media/buffered_data_source_unittest.cc#newcode329 webkit/media/buffered_data_source_unittest.cc:329: // It'll error after this. On 2011/11/23 04:22:41, ...
9 years, 1 month ago (2011-11-24 01:20:38 UTC) #4
scherkus (not reviewing)
turns out checking loading has indeed stopped prior to calling Stop() is good enough to ...
9 years ago (2011-11-28 18:30:47 UTC) #5
vrk (LEFT CHROMIUM)
LGTM with nits The tests look WAY better; thanks scherkus!! http://codereview.chromium.org/8649002/diff/22002/webkit/media/buffered_data_source_unittest.cc File webkit/media/buffered_data_source_unittest.cc (right): http://codereview.chromium.org/8649002/diff/22002/webkit/media/buffered_data_source_unittest.cc#newcode166 ...
9 years ago (2011-11-29 04:08:23 UTC) #6
scherkus (not reviewing)
thanks for the review vrk/fischman! http://codereview.chromium.org/8649002/diff/22002/webkit/media/buffered_data_source_unittest.cc File webkit/media/buffered_data_source_unittest.cc (right): http://codereview.chromium.org/8649002/diff/22002/webkit/media/buffered_data_source_unittest.cc#newcode166 webkit/media/buffered_data_source_unittest.cc:166: EXPECT_CALL(*this, ReadCallback(media::DataSource::kReadError)); On 2011/11/29 ...
9 years ago (2011-11-29 18:49:29 UTC) #7
scherkus (not reviewing)
+tony for webkit/tools OWNERS
9 years ago (2011-11-29 21:07:20 UTC) #8
tony
9 years ago (2011-11-29 21:33:53 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698