Lines Matching full:endpoint

66         endpoint = std::make_shared<MockMCTPEndpoint>();  in SetUp()
67 EXPECT_CALL(*endpoint, device()) in SetUp()
69 EXPECT_CALL(*endpoint, describe()) in SetUp()
70 .WillRepeatedly(testing::Return("mock endpoint")); in SetUp()
71 EXPECT_CALL(*endpoint, eid()).WillRepeatedly(testing::Return(9)); in SetUp()
72 EXPECT_CALL(*endpoint, network()).WillRepeatedly(testing::Return(1)); in SetUp()
78 EXPECT_TRUE(testing::Mock::VerifyAndClearExpectations(endpoint.get())); in TearDown()
85 std::shared_ptr<MockMCTPEndpoint> endpoint; member in MCTPReactorFixture
99 std::make_error_code(std::errc::permission_denied), endpoint)); in TEST_F()
118 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() { in TEST_F()
119 removeHandler(endpoint); in TEST_F()
121 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_)) in TEST_F()
125 endpoint->remove(); in TEST_F()
128 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint)); in TEST_F()
147 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() { in TEST_F()
148 removeHandler(endpoint); in TEST_F()
150 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_)) in TEST_F()
154 endpoint->remove(); in TEST_F()
158 std::make_error_code(std::errc::permission_denied), endpoint)) in TEST_F()
159 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint)); in TEST_F()
181 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() { in TEST_F()
182 removeHandler(endpoint); in TEST_F()
184 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_)) in TEST_F()
189 endpoint->remove(); in TEST_F()
194 testing::InvokeArgument<0>(std::error_code(), endpoint)); in TEST_F()
197 removeHandler(endpoint); in TEST_F()
220 auto endpoint = std::make_shared<MockMCTPEndpoint>(); in TEST() local
221 EXPECT_CALL(*endpoint, describe()) in TEST()
222 .WillRepeatedly(testing::Return("mock endpoint")); in TEST()
223 EXPECT_CALL(*endpoint, eid()).WillRepeatedly(testing::Return(9)); in TEST()
224 EXPECT_CALL(*endpoint, network()).WillRepeatedly(testing::Return(1)); in TEST()
225 EXPECT_CALL(*endpoint, remove()) in TEST()
227 .WillRepeatedly(testing::Invoke([&]() { removeHandler(endpoint); })); in TEST()
228 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_)) in TEST()
236 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint)); in TEST()
238 endpoint->remove(); in TEST()
245 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint)); in TEST()
247 endpoint->remove(); in TEST()
250 EXPECT_CALL(*endpoint, device()) in TEST()
263 EXPECT_TRUE(testing::Mock::VerifyAndClearExpectations(endpoint.get())); in TEST()