Merge "Add extra check for NetworkWatchlistTest"

am: f4130d6822

Change-Id: I196889432036b9232507f926f8bee9376ecd0636
This commit is contained in:
Tomasz Wasilczyk
2019-12-04 10:24:40 -08:00
committed by android-build-merger

View File

@@ -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));
}