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

Issue 2380593002: Check whether it has the permission to read files when running ImeTest (Closed)

Created:
4 years, 2 months ago by yabinh
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check whether it has the permission to read files when running ImeTest Sometimes ImeTest fails because it has no permission to read files. We should check if that's the case. BUG=651274

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 4 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
yabinh
The way to make the test fail on an android phone is: Go to Settings->Apps->Content ...
4 years, 2 months ago (2016-09-28 06:48:47 UTC) #4
aelias_OOO_until_Jul13
Could you provide a bit of context? 1. Does this turn a flake into a ...
4 years, 2 months ago (2016-09-28 23:44:31 UTC) #7
yabinh
On 2016/09/28 23:44:31, aelias wrote: > Could you provide a bit of context? > 1. ...
4 years, 2 months ago (2016-09-29 01:25:31 UTC) #9
aelias_OOO_until_Jul13
4 years, 2 months ago (2016-09-29 02:20:36 UTC) #10
OK.  This was using run_content_shell_test_apk?  It looks like the code that
script uses to set permissions lives at
https://cs.chromium.org/chromium/src/third_party/catapult/devil/devil/android...
.  Adding this assertion is a marginal improvement, but it would be even better
to fix the bug in the install/run script that causes this to happen.  For
example, perhaps it's a race condition and the activity starts before the
permission setting is complete.  If so, you could cause the test script to
block/poll on the permission setting being complete before starting the test.

If you do add the assertion, I think CriteriaHelper isn't required (just assert
directly) and also ContentDetectionTest should also have it (it's the other test
category that loads files).

Powered by Google App Engine
This is Rietveld 408576698