TEST_F(FocusedSessionClrTests, shouldPutTheFocusedWindowViewInDialingModeWhenADialingSessionIsSet) { SessionPtr session = New.Session().thatIsInitialized(); MockFocusedSessionView view; FocusedSessionClr clr(phoneModel, view); EXPECT_CALL(view, configureForDialing()); phoneModel.focusedSession.set(session.data()); }
TEST_F(FocusedSessionClrTests, shouldEchoDialStringOnTheView) { SessionPtr session = New.Session().thatIsInitialized(); phoneModel.focusedSession.set(session.data()); QString newDialString("1"); MockFocusedSessionView view; FocusedSessionClr(phoneModel, view); EXPECT_CALL(view, updateDialString(newDialString)); session->dialString().text.setString(newDialString); }