File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
android-interop-testing/src/androidTest/java/io/grpc/android/integrationtest Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919import static org .junit .Assert .assertEquals ;
2020
2121import android .net .LocalSocketAddress .Namespace ;
22- import androidx .test .InstrumentationRegistry ;
22+ import androidx .test .ext . junit . rules . ActivityScenarioRule ;
2323import androidx .test .ext .junit .runners .AndroidJUnit4 ;
24- import androidx .test .rule . ActivityTestRule ;
24+ import androidx .test .platform . app . InstrumentationRegistry ;
2525import io .grpc .Grpc ;
2626import io .grpc .InsecureServerCredentials ;
2727import io .grpc .Server ;
@@ -60,8 +60,8 @@ public class UdsChannelInteropTest {
6060 // Ensures Looper is initialized for tests running on API level 15. Otherwise instantiating an
6161 // AsyncTask throws an exception.
6262 @ Rule
63- public ActivityTestRule <TesterActivity > activityRule =
64- new ActivityTestRule < TesterActivity >(TesterActivity .class );
63+ public ActivityScenarioRule <TesterActivity > activityRule =
64+ new ActivityScenarioRule < >(TesterActivity .class );
6565
6666 @ Before
6767 public void setUp () throws IOException {
You can’t perform that action at this time.
0 commit comments