Merge "Fix more config_headlineFontFamily-induced test breakages" into oc-dr1-dev am: 7b445d59ef am: 1ee62c16a3

am: df916872c1

Change-Id: Ie842bc43d7af52f3b797eba63c2ec9e5fb886381
This commit is contained in:
Andrew Sapperstein
2017-07-27 05:30:09 +00:00
committed by android-build-merger

View File

@@ -36,6 +36,8 @@ import com.android.settings.testutils.shadow.ShadowEventLogWriter;
import com.android.settings.testutils.shadow.ShadowUtils; import com.android.settings.testutils.shadow.ShadowUtils;
import com.android.setupwizardlib.GlifLayout; import com.android.setupwizardlib.GlifLayout;
import org.junit.After;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.Robolectric; import org.robolectric.Robolectric;
@@ -56,6 +58,17 @@ import org.robolectric.shadows.ShadowDrawable;
}) })
public class ChooseLockPasswordTest { public class ChooseLockPasswordTest {
@Before
public void setUp() throws Exception {
SettingsShadowResources.overrideResource(
com.android.internal.R.string.config_headlineFontFamily, "");
}
@After
public void tearDown() {
SettingsShadowResources.reset();
}
@Test @Test
public void intentBuilder_setPassword_shouldAddExtras() { public void intentBuilder_setPassword_shouldAddExtras() {
Intent intent = new IntentBuilder(application) Intent intent = new IntentBuilder(application)