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

Issue 13079008: Make use of network delegate explicit in drive unit tests using TestURLRequest. (Closed)

Created:
7 years, 9 months ago by tedv
Modified:
7 years, 8 months ago
Reviewers:
hshi1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make use of network delegate explicit in drive unit tests using TestURLRequest. The older interface assumes an implicit relationship between a URLRequestContext and its delegate. This interface has been deprecated in favor of making the network delegate explicit. BUG=146587 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192977

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix style nits. #

Patch Set 3 : Revert to NULL network delegate in request context, and explain why. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
tedv
hshi: PTAL. Let me know if you have questions but it should be pretty straight-forward.
7 years, 9 months ago (2013-03-26 03:48:40 UTC) #1
hshi1
https://codereview.chromium.org/13079008/diff/1/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc File chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc (right): https://codereview.chromium.org/13079008/diff/1/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc#newcode49 chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc:49: delegate_.get(), url_request_context_.get(), network_delegate_.get()); If they do not fit one ...
7 years, 9 months ago (2013-03-26 03:50:14 UTC) #2
tedv
Fixed style nits as requested.
7 years, 9 months ago (2013-03-26 04:03:29 UTC) #3
hshi1
LGTM and thanks!
7 years, 9 months ago (2013-03-26 04:19:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/13079008/3002
7 years, 9 months ago (2013-03-26 13:24:31 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=97042
7 years, 9 months ago (2013-03-26 14:22:20 UTC) #6
tedv
Having dug into this code, the unit test failures are generated by the TestNetworkDelegate internal ...
7 years, 8 months ago (2013-04-04 03:45:32 UTC) #7
tedv
So I've opted for the least risky option of creating the URLRequestContext with no network ...
7 years, 8 months ago (2013-04-07 20:13:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/13079008/30001
7 years, 8 months ago (2013-04-07 21:50:29 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-07 22:04:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/13079008/30001
7 years, 8 months ago (2013-04-08 13:01:31 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 13:05:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedv@chromium.org/13079008/30001
7 years, 8 months ago (2013-04-09 00:57:39 UTC) #13
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 00:57:50 UTC) #14
Message was sent while issue was closed.
Change committed as 192977

Powered by Google App Engine
This is Rietveld 408576698