diff options
author | Hugo Benichi <hugobenichi@google.com> | 2017-05-25 13:49:32 +0900 |
---|---|---|
committer | Hugo Benichi <hugobenichi@google.com> | 2017-05-26 07:18:15 +0900 |
commit | 03f6e1d18a495fb2fe691db7537e944aba1f13cc (patch) | |
tree | 1db4704cd402ba6eecbeffa72dc2b8880c591982 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 849b81b7abc6334d04636850edda210637594f4d (diff) |
NsdService: do not use ContentResolver directly
This patch changes NsdService to call registerContentObserver in the
ContentResolver class indirectly through NsdSettings.
This allows to easily intercept it and mock it in unit tests, and solves
test failures on the internal master branch where
registerContentObserver uses final or static methods that cannot be
worked around.
Bug: 32561414
Bug: 62044295
Test: runtest -x frameworks/base/tests/net/../NsdServiceTest.java
Change-Id: If4deb106de551746babb70196b20f21ece478850
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions