Expected hasClients at least 3 times #4721

This commit is contained in:
Jerry (Xinyu Hou) 2015-07-21 15:29:09 -07:00
parent 9d44affc89
commit de49b46edd
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ using ::testing::Matcher;
using ::testing::MatcherCast;
using ::testing::Property;
using ::testing::StrEq;
using ::testing::AtLeast;
using namespace synergy;
@ -52,7 +53,7 @@ TEST(IpcLogOutputterTests, write_threadingEnabled_bufferIsSent)
ON_CALL(mockServer, hasClients(_)).WillByDefault(Return(true));
EXPECT_CALL(mockServer, hasClients(_)).Times(3);
EXPECT_CALL(mockServer, hasClients(_)).Times(AtLeast(3));
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 1\n"), _)).Times(1);
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 2\n"), _)).Times(1);