Skip to content

Commit

Permalink
Mock noisy test output
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Jan 27, 2019
1 parent 10433e5 commit 493ab66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Expand Up @@ -148,6 +148,7 @@ CommonRobotModelTest::CommonRobotModelDescendantMock::CommonRobotModelDescendant
emit connected(true, "");
});
}
EXPECT_CALL(*this, needsConnection()).Times(AtLeast(0));
}

void CommonRobotModelTest::CommonRobotModelDescendantMock::connectToRobot()
Expand Down
Expand Up @@ -82,6 +82,11 @@ void InterpreterTest::SetUp()
ON_CALL(mModel, timeline()).WillByDefault(ReturnRef(mTimeline));
EXPECT_CALL(mModel, timeline()).Times(AtLeast(1));

ON_CALL(mModel, updateIntervalForInterpretation()).WillByDefault(Return(10));
EXPECT_CALL(mModel, updateIntervalForInterpretation()).Times(AtLeast(1));

EXPECT_CALL(mModel, updateSensorsValues()).Times(AtLeast(1));


ON_CALL(mModelManager, model()).WillByDefault(ReturnRef(mModel));
EXPECT_CALL(mModelManager, model()).Times(AtLeast(1));
Expand Down
Expand Up @@ -154,6 +154,7 @@ void Connection::processBuffer()
}
}
}
break;
}
case Protocol::endOfLineSeparator:
{
Expand All @@ -165,6 +166,7 @@ void Connection::processBuffer()

mBuffer = messages.last();
}
break;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions qrtest/unitTests/testUtils/src/qrguiFacade.cpp
Expand Up @@ -76,6 +76,7 @@ QrguiFacade::QrguiFacade(QString const &modelName)
EXPECT_CALL(mMainWindowInterpretersInterfaceMock, dehighlight(_)).Times(AtLeast(0));
EXPECT_CALL(mMainWindowInterpretersInterfaceMock, dehighlight()).Times(AtLeast(0));
EXPECT_CALL(mMainWindowInterpretersInterfaceMock, activateItemOrDiagram(_, _)).Times(AtLeast(0));
EXPECT_CALL(mMainWindowInterpretersInterfaceMock, currentTab()).Times(AtLeast(0));

EXPECT_CALL(mErrorReporterMock, addInformation(_, _)).Times(AtLeast(0));
EXPECT_CALL(mErrorReporterMock, addWarning(_, _)).Times(AtLeast(0));
Expand Down

0 comments on commit 493ab66

Please sign in to comment.