History log of /frameworks/base/services/tests/servicestests/src/com/android/server/webkit/TestSystemImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
95f7e8e06dd0003a813f7a4b3c718c68d0fa4a01 14-Apr-2016 Gustav Sennton <gsennton@google.com> Fix the behaviour for explicitly switching WebView provider

Before this CL when we tried to change WebView provider through the Dev
setting and failed we would then have the setting point to the provider
used before the change. With this CL we instead let the setting point to
the intended target but also switch to the package which the
WebViewUpdateService see as most fit (rather than just reverting back to
the original choice).

Add unit tests to verify we kill processes depending on WebView
packages when switching WebView provider.

Add unit tests to ensure we can recover from trying to change provider
when there are no providers available.

Bug: 27673076
Bug: 27635535
Change-Id: Ie7bb6afdf8acf4344cfb363947929c0b492775fb
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/TestSystemImpl.java
53b78241ffc32e61d12afc6245633266e592db88 07-Apr-2016 Gustav Sennton <gsennton@google.com> Add initial unit tests for WebViewUpdateService.

The logic in the WebViewUpdateService is now more complex and there
are lots of edge cases that should be tested to make sure we don't
regress anything.

Also refrain from running fallback logic on boot if fallback logic not
enabled (bug found through a failing test, yeeah buddy!).

Catch uncaught MissingWebViewException (very timing-dependent!) and add
test for this.

Add tests for:
Some package setups (single package, non-default vs. default packages,
valid vs. invalid packages).
Ensure correct error codes used
Switching provider through settings-method
Switching provider through adding more prioritized provider
Switching provider in the middle of already running webview preparation
Ensure fallback logic is run when enabled and not run when disabled (at
boot, packageStateChanged, and when adding a new user).

Bug: 27635535

Change-Id: I275ecb0f6129f71258da0fa053e7f7b36a675886
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/TestSystemImpl.java