Lines Matching refs:mock
36 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
37 mock->ExpectSend("FB01"); in TEST()
38 mock->AddReceive("FB01"); in TEST()
41 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
46 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
47 mock->ExpectSend("FB01"); in TEST()
48 mock->AddReceive("FB99"); in TEST()
51 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
56 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
57 mock->ExpectSendFailure("FB01"); in TEST()
60 EXPECT_EQ(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
65 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
66 mock->ExpectSend("FB01"); in TEST()
67 mock->AddReceiveFailure(); in TEST()
70 EXPECT_EQ(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
75 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
76 mock->ExpectSend("FB01"); in TEST()
77 mock->AddReceive("XX01"); in TEST()
80 EXPECT_EQ(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
85 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
86 mock->ExpectSend("FB01"); in TEST()
87 mock->AddReceive("FB00"); in TEST()
90 EXPECT_EQ(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()