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

Issue 9110042: Re-enable DownloadsApiTest.Downloads (Closed)

Created:
8 years, 11 months ago by cbentzel
Modified:
8 years, 11 months ago
Reviewers:
asanka, benjhayden
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Re-enable DownloadsApiTest.Downloads This had three issues which are addressed in this CL: - The in progress downloads need to be canceled at test shutdown to prevent the browser from bringing up the "Downloads are in progress" prompt at attempted shutdown. This caused the test to periodically timeout. - The filename validation logic triggered an out-of-bounds check when the filenames were less than 2 characters. The validation was also done even if no filename was specified in the dictionary. - The download api configuration no longer had HttpHeaders after this was split to multiple files. I added it here. BUG=109436 TEST=browser_tests --gtest_filter=DownloadsApiTest.Downloads Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117463

Patch Set 1 #

Total comments: 8

Patch Set 2 : Cancel in JS #

Patch Set 3 : Format and includes #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : Fix indentation #

Patch Set 6 : Nits #

Patch Set 7 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -104 lines) Patch
M chrome/browser/download/download_extension_api.cc View 1 2 3 2 chunks +30 lines, -10 lines 0 comments Download
M chrome/browser/download/download_extension_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/downloads/test.js View 1 2 3 4 5 3 chunks +106 lines, -93 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
cbentzel
I need to regenerate the extension docs due to the change in the .json file ...
8 years, 11 months ago (2012-01-06 21:41:11 UTC) #1
benjhayden
I seem to recall trying this back in November or December, but I can't remember ...
8 years, 11 months ago (2012-01-09 15:22:49 UTC) #2
asanka
http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc File chrome/browser/download/download_extension_apitest.cc (right): http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc#newcode45 chrome/browser/download/download_extension_apitest.cc:45: download_manager->GetAllDownloads(FilePath(), &all_downloads); There's a race here where the download ...
8 years, 11 months ago (2012-01-09 17:22:16 UTC) #3
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc File chrome/browser/download/download_extension_apitest.cc (right): http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc#newcode45 chrome/browser/download/download_extension_apitest.cc:45: download_manager->GetAllDownloads(FilePath(), &all_downloads); On 2012/01/09 17:22:17, asanka wrote: > There's ...
8 years, 11 months ago (2012-01-09 19:05:44 UTC) #4
cbentzel
http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_api.cc#newcode210 chrome/browser/download/download_extension_api.cc:210: if (options->HasKey(kSaveAsKey)) { On 2012/01/09 15:22:49, b s h ...
8 years, 11 months ago (2012-01-09 19:16:41 UTC) #5
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc File chrome/browser/download/download_extension_apitest.cc (right): http://codereview.chromium.org/9110042/diff/1/chrome/browser/download/download_extension_apitest.cc#newcode45 chrome/browser/download/download_extension_apitest.cc:45: download_manager->GetAllDownloads(FilePath(), &all_downloads); On 2012/01/09 19:16:41, cbentzel wrote: > On ...
8 years, 11 months ago (2012-01-09 19:20:32 UTC) #6
cbentzel
I ended up moving the clean up logic into test.js, rather than the DownloadsApiTest framework. ...
8 years, 11 months ago (2012-01-11 16:19:53 UTC) #7
benjhayden
LGTM if this passes 100 out of 100 times on windows and one of mac/linux/cros. ...
8 years, 11 months ago (2012-01-11 17:39:44 UTC) #8
asanka
LGTM http://codereview.chromium.org/9110042/diff/13001/chrome/common/extensions/api/experimental.downloads.json File chrome/common/extensions/api/experimental.downloads.json (right): http://codereview.chromium.org/9110042/diff/13001/chrome/common/extensions/api/experimental.downloads.json#newcode84 chrome/common/extensions/api/experimental.downloads.json:84: { Nit: indentation. http://codereview.chromium.org/9110042/diff/13001/chrome/test/data/extensions/api_test/downloads/test.js File chrome/test/data/extensions/api_test/downloads/test.js (right): http://codereview.chromium.org/9110042/diff/13001/chrome/test/data/extensions/api_test/downloads/test.js#newcode73 ...
8 years, 11 months ago (2012-01-11 18:22:59 UTC) #9
cbentzel
http://codereview.chromium.org/9110042/diff/13001/chrome/common/extensions/api/experimental.downloads.json File chrome/common/extensions/api/experimental.downloads.json (right): http://codereview.chromium.org/9110042/diff/13001/chrome/common/extensions/api/experimental.downloads.json#newcode84 chrome/common/extensions/api/experimental.downloads.json:84: { On 2012/01/11 18:22:59, asanka wrote: > Nit: indentation. ...
8 years, 11 months ago (2012-01-11 18:43:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9110042/18006
8 years, 11 months ago (2012-01-12 14:54:55 UTC) #11
commit-bot: I haz the power
Try job failure for 9110042-18006 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 11 months ago (2012-01-12 16:34:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9110042/18006
8 years, 11 months ago (2012-01-12 16:58:18 UTC) #13
commit-bot: I haz the power
8 years, 11 months ago (2012-01-12 19:00:09 UTC) #14
Change committed as 117463

Powered by Google App Engine
This is Rietveld 408576698