diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2018-05-16 17:29:32 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2018-05-17 10:25:05 +0900 |
commit | 6657d42602a25264ccbf70ce2eb36f3974518139 (patch) | |
tree | e1a47dcd2973835a289a4fbb2dd3e8f45e02ca00 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7a4ff6447df79de973ff13751bea3bde689cfcd0 (diff) |
Fix SntpClientTest failures with no active network
The last change is using getActiveNetwork to run the queries, which
results in an NPE if there is no network on the device. Using network 0
causes no socket tagging and allows queries to the local test SNTP
server to go through as previously.
Also migrating to JUnit4 and moving mServer and mClient initializers to
setUp().
Test: SntpClientTest now passes
Change-Id: Ieb0a5d247129bcad89c1add0e9c1c504f516e2a9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions