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

Issue 1839273002: Use /etc/hosts for URLRequestTest.FileTest on Android (Closed)

Created:
4 years, 8 months ago by kraush
Modified:
4 years, 8 months ago
Reviewers:
pauljensen, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use /etc/hosts for URLRequestTest.FileTest on Android URLRequestTest.FileTest tries to read /self/proc/exe, which Android's security model will prevent on User platform builds running a Release apk. This change uses /etc/hosts instead for Android to verify file access. BUG=598918 Committed: https://crrev.com/5a645820f0e600e96d3e96eb247ce62819156f89 Cr-Commit-Position: refs/heads/master@{#385817}

Patch Set 1 #

Patch Set 2 : Using /etc/hosts #

Total comments: 2

Patch Set 3 : Removed duplicate invocation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M net/url_request/url_request_unittest.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
kraush
Hi Matt, Can you take a look at this proposed test change for Android? Thanks! ...
4 years, 8 months ago (2016-03-30 01:30:28 UTC) #2
mattm
I'm not an android expert, but this seems weird. Paul, what do you think?
4 years, 8 months ago (2016-03-31 02:56:31 UTC) #4
pauljensen
Ya, this seems weird. Kraush, can you further track down why it appears we're not ...
4 years, 8 months ago (2016-03-31 03:59:59 UTC) #5
kraush
On 2016/03/31 03:59:59, pauljensen wrote: > Ya, this seems weird. Kraush, can you further track ...
4 years, 8 months ago (2016-04-04 23:56:48 UTC) #6
kraush
On 2016/04/04 23:56:48, kraush wrote: > On 2016/03/31 03:59:59, pauljensen wrote: > > Ya, this ...
4 years, 8 months ago (2016-04-05 00:45:07 UTC) #7
pauljensen
For Android how about we just change the test to use some known file, like ...
4 years, 8 months ago (2016-04-07 12:02:57 UTC) #8
kraush
On 2016/04/07 12:02:57, pauljensen wrote: > For Android how about we just change the test ...
4 years, 8 months ago (2016-04-07 16:43:34 UTC) #9
kraush
Updated to use /etc/hosts on Android platforms. Also updated the commit message. Please take another ...
4 years, 8 months ago (2016-04-07 16:49:07 UTC) #11
pauljensen
https://codereview.chromium.org/1839273002/diff/20001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/1839273002/diff/20001/net/url_request/url_request_unittest.cc#newcode844 net/url_request/url_request_unittest.cc:844: PathService::Get(base::FILE_EXE, &app_path); this won't work...you've still got the line ...
4 years, 8 months ago (2016-04-07 17:18:08 UTC) #12
kraush
https://codereview.chromium.org/1839273002/diff/20001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/1839273002/diff/20001/net/url_request/url_request_unittest.cc#newcode844 net/url_request/url_request_unittest.cc:844: PathService::Get(base::FILE_EXE, &app_path); On 2016/04/07 17:18:08, pauljensen wrote: > this ...
4 years, 8 months ago (2016-04-07 17:21:31 UTC) #13
kraush
Sorry for the unnecessary duplicate invocation! Removed in the latest patch set.
4 years, 8 months ago (2016-04-07 17:35:09 UTC) #14
pauljensen
lgtm
4 years, 8 months ago (2016-04-07 17:58:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839273002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839273002/40001
4 years, 8 months ago (2016-04-07 17:59:07 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 18:35:13 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 18:36:30 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5a645820f0e600e96d3e96eb247ce62819156f89
Cr-Commit-Position: refs/heads/master@{#385817}

Powered by Google App Engine
This is Rietveld 408576698