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

Issue 2749043003: Moved tests from DataManager to JobData. (Closed)

Created:
3 years, 9 months ago by harkness
Modified:
3 years, 9 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, Peter Beverloo, darin-cc_chromium.org, jam, harkness+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved tests from DataManager to JobData. Originally, the request management was in the BackgroundFetchDataManager, but it was moved into the JobData and the tests weren't moved at the same time. This CL moves those tests, which avoids a lot of setup for the unused DataManager functionality. This also expands the testing for the JobData, adding tests for paused, cancelled, and out of order request completion. BUG=692544 Review-Url: https://codereview.chromium.org/2749043003 Cr-Commit-Position: refs/heads/master@{#458401} Committed: https://chromium.googlesource.com/chromium/src/+/85aa3feee7879a190e2a9a9563e1e3daf59676f1

Patch Set 1 #

Patch Set 2 : Remove unnecessary include. #

Total comments: 8

Patch Set 3 : Merged in callback review changes. #

Patch Set 4 : addressed code review comments #

Patch Set 5 : Rebase #

Patch Set 6 : Fix rebase #

Patch Set 7 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -109 lines) Patch
D content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -108 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_data_unittest.cc View 1 2 3 1 chunk +180 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (13 generated)
harkness
3 years, 9 months ago (2017-03-15 16:19:56 UTC) #2
Peter Beverloo
lgtm https://codereview.chromium.org/2749043003/diff/20001/content/browser/background_fetch/background_fetch_job_data_unittest.cc File content/browser/background_fetch/background_fetch_job_data_unittest.cc (right): https://codereview.chromium.org/2749043003/diff/20001/content/browser/background_fetch/background_fetch_job_data_unittest.cc#newcode19 content/browser/background_fetch/background_fetch_job_data_unittest.cc:19: } // namespace nit: you can put this ...
3 years, 9 months ago (2017-03-16 12:43:50 UTC) #3
harkness
https://codereview.chromium.org/2749043003/diff/20001/content/browser/background_fetch/background_fetch_job_data_unittest.cc File content/browser/background_fetch/background_fetch_job_data_unittest.cc (right): https://codereview.chromium.org/2749043003/diff/20001/content/browser/background_fetch/background_fetch_job_data_unittest.cc#newcode19 content/browser/background_fetch/background_fetch_job_data_unittest.cc:19: } // namespace On 2017/03/16 12:43:50, Peter Beverloo wrote: ...
3 years, 9 months ago (2017-03-19 18:20:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749043003/60001
3 years, 9 months ago (2017-03-20 13:19:28 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/58616) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-20 13:21:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749043003/100001
3 years, 9 months ago (2017-03-20 18:30:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/231623) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-20 19:19:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749043003/120001
3 years, 9 months ago (2017-03-21 12:00:59 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/344220)
3 years, 9 months ago (2017-03-21 12:46:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749043003/120001
3 years, 9 months ago (2017-03-21 13:53:17 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 14:19:49 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/85aa3feee7879a190e2a9a9563e1...

Powered by Google App Engine
This is Rietveld 408576698