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

Issue 2337983004: [AndroidWebView] Add instrumentation test to catch StrictMode violations (Closed)

Created:
4 years, 3 months ago by gsennton
Modified:
4 years, 2 months ago
Reviewers:
pastarmovj, dgn, Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org, aberent, dgn
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[AndroidWebView] Add instrumentation test to catch StrictMode violations Since WebView is an Android component we don't want WebView startup to cause any StrictMode violations. BUG=628650 Committed: https://crrev.com/872e1ba031bf6c7ea6ae39f10a23f80e34db6791 Cr-Commit-Position: refs/heads/master@{#424148}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove unnecessary change to AwBrowserProcess. #

Patch Set 3 : Enable real-world App restrictions code path for all instr. tests. #

Total comments: 3

Patch Set 4 : Allow diskReads in AwBrowserProcess.loadLibrary when called from AwTestRunnerActivity. #

Patch Set 5 : Minor changes - class renaming + comment removal. #

Messages

Total messages: 18 (6 generated)
gsennton
AFAICT we are running each instrumentation test case in a different process - is this ...
4 years, 3 months ago (2016-09-14 17:18:05 UTC) #2
Torne
> AFAICT we are running each instrumentation test case in a different process - is ...
4 years, 3 months ago (2016-09-20 13:41:20 UTC) #3
dgn
https://codereview.chromium.org/2337983004/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java (right): https://codereview.chromium.org/2337983004/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java#newcode39 android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java:39: AbstractAppRestrictionsProvider.setTestRestrictions(null); On 2016/09/14 17:18:04, gsennton wrote: > Nicolas, is ...
4 years, 3 months ago (2016-09-22 09:37:47 UTC) #5
gsennton
Calling AwBrowserProcess.start() twice indeed causes a crash (java.nio.channels.OverlappingFileLockException), so that's fine :). https://codereview.chromium.org/2337983004/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java ...
4 years, 3 months ago (2016-09-22 12:34:47 UTC) #6
gsennton
Hah! Almost done here.. just need to figure out why we aren't hitting the detectLeakedCloseableObjects ...
4 years, 3 months ago (2016-09-23 15:14:23 UTC) #7
dgn
https://codereview.chromium.org/2337983004/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java (right): https://codereview.chromium.org/2337983004/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java#newcode39 android_webview/javatests/src/org/chromium/android_webview/test/AwStartupStrictModeTest.java:39: AbstractAppRestrictionsProvider.setTestRestrictions(null); On 2016/09/22 12:34:46, gsennton wrote: > On 2016/09/22 ...
4 years, 2 months ago (2016-10-03 16:14:26 UTC) #8
gsennton
Adding pastarmovj@ for OWNER review of components/policy/ I think we can land this now. This ...
4 years, 2 months ago (2016-10-07 16:40:38 UTC) #10
pastarmovj
lgtm
4 years, 2 months ago (2016-10-10 10:35:37 UTC) #11
Torne
lgtm
4 years, 2 months ago (2016-10-10 12:09:41 UTC) #12
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/2337983004/80001
4 years, 2 months ago (2016-10-10 13:45:09 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-10 14:32:32 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 14:34:24 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/872e1ba031bf6c7ea6ae39f10a23f80e34db6791
Cr-Commit-Position: refs/heads/master@{#424148}

Powered by Google App Engine
This is Rietveld 408576698