Loading android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/HfpClientDeviceBlockTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public class HfpClientDeviceBlockTest { private static final String TEST_DEVICE_ADDRESS = "00:11:22:33:44:55"; private static final String TEST_NUMBER = "000-111-2222"; private static final String KEY_SCO_STATE = "com.android.bluetooth.hfpclient.SCO_STATE"; private static final String TEST_PACKAGE = "test"; @Mock private HeadsetClientService mHeadsetClientService; Loading Loading @@ -76,6 +77,7 @@ public class HfpClientDeviceBlockTest { .hfp_client_connection_service_support_emergency_call)).thenReturn(true); when(mApplicationContext.getResources()).thenReturn(mResources); when(mConnServ.getApplicationContext()).thenReturn(mApplicationContext); when(mConnServ.getPackageName()).thenReturn(TEST_PACKAGE); when(mConnServ.getSystemService(Context.TELECOM_SERVICE)).thenReturn(mTelecomManager); when(mConnServ.getSystemServiceName(TelecomManager.class)) Loading Loading
android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/HfpClientDeviceBlockTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public class HfpClientDeviceBlockTest { private static final String TEST_DEVICE_ADDRESS = "00:11:22:33:44:55"; private static final String TEST_NUMBER = "000-111-2222"; private static final String KEY_SCO_STATE = "com.android.bluetooth.hfpclient.SCO_STATE"; private static final String TEST_PACKAGE = "test"; @Mock private HeadsetClientService mHeadsetClientService; Loading Loading @@ -76,6 +77,7 @@ public class HfpClientDeviceBlockTest { .hfp_client_connection_service_support_emergency_call)).thenReturn(true); when(mApplicationContext.getResources()).thenReturn(mResources); when(mConnServ.getApplicationContext()).thenReturn(mApplicationContext); when(mConnServ.getPackageName()).thenReturn(TEST_PACKAGE); when(mConnServ.getSystemService(Context.TELECOM_SERVICE)).thenReturn(mTelecomManager); when(mConnServ.getSystemServiceName(TelecomManager.class)) Loading