Merge "Update string for Connected devices page."
This commit is contained in:
committed by
Android (Google) Code Review
commit
af632ab6b2
@@ -86,7 +86,8 @@ public class BluetoothSummaryUpdaterTest {
|
||||
public void register_true_shouldSendSummaryChange() {
|
||||
mSummaryUpdater.register(true);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected));
|
||||
verify(mListener).onSummaryChanged(
|
||||
mContext.getString(R.string.bluetooth_connected_summary));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -102,7 +103,8 @@ public class BluetoothSummaryUpdaterTest {
|
||||
mSummaryUpdater.register(true);
|
||||
mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected));
|
||||
verify(mListener).onSummaryChanged(
|
||||
mContext.getString(R.string.bluetooth_connected_summary));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -111,7 +113,8 @@ public class BluetoothSummaryUpdaterTest {
|
||||
mSummaryUpdater.register(true);
|
||||
mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_ON);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disconnected));
|
||||
verify(mListener).onSummaryChanged(
|
||||
mContext.getString(R.string.disconnected));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -128,7 +131,8 @@ public class BluetoothSummaryUpdaterTest {
|
||||
mSummaryUpdater.onConnectionStateChanged(null /* device */,
|
||||
BluetoothAdapter.STATE_CONNECTED);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected));
|
||||
verify(mListener).onSummaryChanged(
|
||||
mContext.getString(R.string.bluetooth_connected_summary));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -137,7 +141,8 @@ public class BluetoothSummaryUpdaterTest {
|
||||
mSummaryUpdater.onConnectionStateChanged(null /* device */,
|
||||
BluetoothAdapter.STATE_CONNECTED);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disconnected));
|
||||
verify(mListener).onSummaryChanged(
|
||||
mContext.getString(R.string.disconnected));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user