@Test public void testUseSpeaker() { VoiceCallEngine.getInstance().useSpeaker(); verify(VoiceCallEngine.getInstance().getmRtcEngine(), times(1)).setEnableSpeakerphone(true); }
public void useSpeaker() { mRtcEngine.setEnableSpeakerphone(true); }
VoiceCallEngine { public void useSpeaker() { mRtcEngine.setEnableSpeakerphone(true); } }
VoiceCallEngine { public void useSpeaker() { mRtcEngine.setEnableSpeakerphone(true); } private  VoiceCallEngine(); }
VoiceCallEngine { public void useSpeaker() { mRtcEngine.setEnableSpeakerphone(true); } private  VoiceCallEngine(); static VoiceCallEngine getInstance(); RtcEngine getmRtcEngine(); void joinChannel(String channelID, EventHandler handler); void leaveChannel(); void muteMic(); void unmuteMic(); void useSpeaker(); void useEarpiece(); }
VoiceCallEngine { public void useSpeaker() { mRtcEngine.setEnableSpeakerphone(true); } private  VoiceCallEngine(); static VoiceCallEngine getInstance(); RtcEngine getmRtcEngine(); void joinChannel(String channelID, EventHandler handler); void leaveChannel(); void muteMic(); void unmuteMic(); void useSpeaker(); void useEarpiece();  }