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

Issue 12321106: Update TestURLRequest constructor interface in unit tests. (Closed)

Created:
7 years, 10 months ago by tedv
Modified:
7 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, tzik+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Update TestURLRequest constructor interface in unit tests. The webkit and android_webview unit tests that create TestURLRequest objects are updated in this patch to explicitly specify which network delegate they use, rather than extracting it from the context. This is usually but not always NULL. This change is motivated by a desire to remove external accesses to a request context's delegate. (If a block of code needs to use a NetworkDelegate, it should not query the URLRequestContext for it, but instead should already have access to whatever delegate the context uses.) BUG=146587 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188920

Patch Set 1 #

Patch Set 2 : Make use of NULL NetworkDelegate explicit in unit test. #

Total comments: 1

Patch Set 3 : Removed URLRequest network delegate accessor. #

Total comments: 1

Patch Set 4 : Make use of empty delegate more explicit, and fix one broken test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -114 lines) Patch
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M webkit/appcache/appcache_request_handler_unittest.cc View 1 2 3 36 chunks +92 lines, -96 lines 0 comments Download
M webkit/appcache/appcache_url_request_job_unittest.cc View 6 chunks +8 lines, -11 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tedv
michaeln: Please review webkit/* mnaganov: Please review android_webview/* These changes depend on https://codereview.chromium.org/12328072/ which adds ...
7 years, 10 months ago (2013-02-25 03:43:13 UTC) #1
mnaganov (inactive)
LGTM for android_webview
7 years, 10 months ago (2013-02-25 10:32:47 UTC) #2
michaeln
lgtm2
7 years, 9 months ago (2013-02-27 00:55:02 UTC) #3
tedv
mmenke: Can you review net/url_request/url_request.h? I added a protected network_delegate() accessor to URLRequest, which derived ...
7 years, 9 months ago (2013-03-10 20:32:57 UTC) #4
mmenke
https://codereview.chromium.org/12321106/diff/5001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/12321106/diff/5001/net/url_request/url_request.h#newcode652 net/url_request/url_request.h:652: NetworkDelegate* network_delegate() { return network_delegate_; } I don't think ...
7 years, 9 months ago (2013-03-10 20:40:56 UTC) #5
tedv
On 2013/03/10 20:40:56, mmenke wrote: > I don't think we need this. The one class ...
7 years, 9 months ago (2013-03-10 22:35:08 UTC) #6
mmenke
Not an owner of any files in this CL any more, of course, but with ...
7 years, 9 months ago (2013-03-11 01:01:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/12321106/10001
7 years, 9 months ago (2013-03-17 18:00:39 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=25032
7 years, 9 months ago (2013-03-17 18:32:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/12321106/21002
7 years, 9 months ago (2013-03-18 20:40:27 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-19 02:53:31 UTC) #11
Message was sent while issue was closed.
Change committed as 188920

Powered by Google App Engine
This is Rietveld 408576698