Merge "Redirects to connected devices page in a11y pairing page" into main

This commit is contained in:
Angela Wang
2024-02-27 14:25:21 +00:00
committed by Android (Google) Code Review
3 changed files with 9 additions and 31 deletions

View File

@@ -74,13 +74,13 @@ public class ViewAllBluetoothDevicesPreferenceControllerTest {
}
@Test
public void handlePreferenceTreeClick_expectedPreference_launchBluetoothPairingDetail() {
doNothing().when(mController).launchBluetoothPairingDetail();
public void handlePreferenceTreeClick_expectedPreference_launchConnectedDevicePage() {
doNothing().when(mController).launchConnectedDevicePage();
mPreference.setKey(TEST_KEY);
boolean status = mController.handlePreferenceTreeClick(mPreference);
verify(mController).launchBluetoothPairingDetail();
verify(mController).launchConnectedDevicePage();
assertThat(status).isTrue();
}
}