TIAF CTS: Change on API Review: DTV to VOD 2
Bug: 217591199
Test: atest android.media.tv.interactive.cts.TvInteractiveAppServiceTest
Change-Id: Iec00d07854fc948c1ccd2e1bf7d2535f068a54ce
diff --git a/tests/tests/tv/src/android/media/tv/interactive/cts/TvInteractiveAppManagerTest.java b/tests/tests/tv/src/android/media/tv/interactive/cts/TvInteractiveAppManagerTest.java
index a87d914..c55635c 100644
--- a/tests/tests/tv/src/android/media/tv/interactive/cts/TvInteractiveAppManagerTest.java
+++ b/tests/tests/tv/src/android/media/tv/interactive/cts/TvInteractiveAppManagerTest.java
@@ -254,29 +254,33 @@
}
assertNotNull(stubInfo);
- AppLinkInfo info = new AppLinkInfo.Builder("pkg_name", "clazz_name").build();
+ AppLinkInfo info = new AppLinkInfo("pkg_name", "clazz_name", "https://uri.test");
mManager.registerAppLinkInfo(stubInfo.getId(), info);
PollingCheck.waitFor(
TIME_OUT_MS, () -> StubTvInteractiveAppService.sAppLinkInfo != null);
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getPackageName()).isEqualTo("pkg_name");
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getClassName()).isEqualTo("clazz_name");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getComponentName().getPackageName())
+ .isEqualTo("pkg_name");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getComponentName().getClassName())
+ .isEqualTo("clazz_name");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getUri().toString())
+ .isEqualTo("https://uri.test");
mManager.unregisterAppLinkInfo(stubInfo.getId(), info);
PollingCheck.waitFor(
TIME_OUT_MS, () -> StubTvInteractiveAppService.sAppLinkInfo == null);
- info = new AppLinkInfo.Builder("pkg1", "class1").setUriScheme("url1").setUriHost("host2")
- .setUriPrefix("prefix").build();
+ info = new AppLinkInfo("pkg2", "class2", "http://applinkinfo.com");
mManager.registerAppLinkInfo(stubInfo.getId(), info);
PollingCheck.waitFor(
TIME_OUT_MS, () -> StubTvInteractiveAppService.sAppLinkInfo != null);
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getPackageName()).isEqualTo("pkg2");
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getClassName()).isEqualTo("class2");
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getUriScheme()).isEqualTo("url1");
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getUriHost()).isEqualTo("host2");
- assertThat(StubTvInteractiveAppService.sAppLinkInfo.getUriPrefix()).isEqualTo("prefix");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getComponentName().getPackageName())
+ .isEqualTo("pkg2");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getComponentName().getClassName())
+ .isEqualTo("class2");
+ assertThat(StubTvInteractiveAppService.sAppLinkInfo.getUri().toString())
+ .isEqualTo("http://applinkinfo.com");
}
private static void assertBundlesAreEqual(Bundle actual, Bundle expected) {