diff options
author | Pavel Grafov <pgrafov@google.com> | 2017-05-18 17:28:27 +0100 |
---|---|---|
committer | Pavel Grafov <pgrafov@google.com> | 2017-05-22 14:34:09 +0100 |
commit | 75c0a891ae2f1170d64b06baeca49908b6183b70 (patch) | |
tree | 331a698910950a4462d45e48df60b89973e0941c /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 446ecc9c9f8f9e3ff54a21e93cbab4c122b32eda (diff) |
Cleanup some more DPM tests to use runAsCaller.
Factored MockSystemServices out of DpmMockContext. It contains all system
mocks that should be shared by all contexts. So now we can have several
contexts in the test without having to adjust mocks behavior for each of
them separately.
+ minor cleanup: imports, lambdas, redundant generic arguments,
unnecessary try-finally
Bug: 38445735
Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Change-Id: Id18b574b021c16f86fda8ae31291dd5defec0004
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions