Merge "Fix strings in PlatformCompatDashboard"

am: a9f0446ce8

Change-Id: I56cb47ccfe8278e722556fb6f9d4d08f0ac35d52
This commit is contained in:
Andrei-Valentin Onea
2020-01-20 05:25:45 -08:00
committed by android-build-merger
3 changed files with 10 additions and 7 deletions

View File

@@ -105,6 +105,7 @@ public class PlatformCompatDashboardTest {
mDashboard = spy(new PlatformCompatDashboard());
mDashboard.mSelectedApp = APP_NAME;
doReturn(mApplicationInfo).when(mDashboard).getApplicationInfo();
doReturn(mContext).when(mDashboard).getContext();
doReturn(mPlatformCompat).when(mDashboard).getPlatformCompat();
doReturn(mPreferenceScreen).when(mDashboard).getPreferenceScreen();
doReturn(mPreferenceManager).when(mDashboard).getPreferenceManager();
@@ -130,7 +131,8 @@ public class PlatformCompatDashboardTest {
Preference appPreference = mDashboard.createAppPreference(mApplicationInfo);
assertThat(appPreference.getSummary()).isEqualTo(APP_NAME + " SDK 1");
assertThat(appPreference.getSummary()).isEqualTo(mContext.getResources().getString(
R.string.platform_compat_selected_app_summary, APP_NAME, 1));
}
@Test