Add extra check for NetworkWatchlistTest
Bug: 120143468 Test: atest android.net.cts.NetworkWatchlistTest#testGetWatchlistConfigHash Change-Id: I39c0da113a492cae719f7bb7940b86b758272f15
This commit is contained in:
@@ -19,6 +19,7 @@ package android.net.cts;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
import android.content.Context;
|
||||
@@ -72,6 +73,7 @@ public class NetworkWatchlistTest {
|
||||
setWatchlistConfig(TEST_EMPTY_WATCHLIST_XML);
|
||||
// Verify test watchlist config is not set before testing
|
||||
byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash();
|
||||
assertNotNull("Watchlist config does not exist", result);
|
||||
assertNotEquals(TEST_WATCHLIST_CONFIG_HASH, byteArrayToHexString(result));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user