Add SNTP tests to continuous tests

Add SNTP tests to continuous tests.

Bug: 199481251
Test: Treehugger / inspection
Change-Id: I2798eea25c1b7627597388b233397867b25b9655
This commit is contained in:
Neil Fuller
2021-10-07 15:39:57 +01:00
parent e9bca369c0
commit 77c5b8ad9e
3 changed files with 8 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ import static org.mockito.Mockito.when;
import android.net.sntp.Duration64;
import android.net.sntp.Timestamp64;
import android.platform.test.annotations.Presubmit;
import android.util.Log;
import androidx.test.runner.AndroidJUnit4;
@@ -49,6 +50,7 @@ import java.util.Arrays;
import java.util.Random;
import java.util.function.Supplier;
@Presubmit
@RunWith(AndroidJUnit4.class)
public class SntpClientTest {
private static final String TAG = "SntpClientTest";

View File

@@ -21,6 +21,8 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import android.platform.test.annotations.Presubmit;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
@@ -31,6 +33,7 @@ import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
@Presubmit
@RunWith(AndroidJUnit4.class)
public class Duration64Test {

View File

@@ -21,6 +21,8 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import android.platform.test.annotations.Presubmit;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
@@ -31,6 +33,7 @@ import java.util.HashSet;
import java.util.Random;
import java.util.Set;
@Presubmit
@RunWith(AndroidJUnit4.class)
public class Timestamp64Test {