Merge "Turn off WifiTetherSettings page." into oc-mr1-dev
am: b9da1117d0
Change-Id: I4f027adb993a7971f83d3fd659a86dc4392ae57e
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
|
||||
package com.android.settings.wifi.tether;
|
||||
|
||||
import static android.support.test.espresso.Espresso.onView;
|
||||
import static android.support.test.espresso.assertion.ViewAssertions.matches;
|
||||
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
||||
import static android.support.test.espresso.matcher.ViewMatchers.withText;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.app.Instrumentation;
|
||||
import android.content.Intent;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
@@ -33,11 +39,6 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static android.support.test.espresso.Espresso.onView;
|
||||
import static android.support.test.espresso.assertion.ViewAssertions.matches;
|
||||
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
||||
import static android.support.test.espresso.matcher.ViewMatchers.withText;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@SmallTest
|
||||
public class WifiTetherSettingsTest {
|
||||
@@ -63,6 +64,11 @@ public class WifiTetherSettingsTest {
|
||||
mDevice.pressHome();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void verifyPageIsDisabledByDefault() {
|
||||
assertThat(WifiTetherSettings.isTetherSettingPageEnabled()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void launchTetherSettings_shouldHaveAllFields() {
|
||||
launchWifiTetherActivity();
|
||||
|
Reference in New Issue
Block a user