Mark core unit tests for Presubmit
Bug: 68716631 Bug: 68720368 Test: rerun test Change-Id: Ia8cca6aede824928fc358b005172bbe2ed670c8f
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.settings.core;
|
||||
import static junit.framework.Assert.fail;
|
||||
|
||||
import android.content.Context;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.MediumTest;
|
||||
@@ -49,6 +50,7 @@ public class PreferenceControllerContractTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Presubmit
|
||||
public void controllersInSearchShouldImplementPreferenceControllerMixin() {
|
||||
final Set<String> errorClasses = new ArraySet<>();
|
||||
|
||||
|
@@ -21,6 +21,7 @@ import static junit.framework.Assert.fail;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.provider.SearchIndexableResource;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.MediumTest;
|
||||
@@ -83,6 +84,7 @@ public class UniquePreferenceTest {
|
||||
* should have a key.
|
||||
*/
|
||||
@Test
|
||||
@Presubmit
|
||||
public void allPreferencesShouldHaveUniqueKey()
|
||||
throws IOException, XmlPullParserException, Resources.NotFoundException {
|
||||
final Set<String> uniqueKeys = new HashSet<>();
|
||||
|
Reference in New Issue
Block a user