Lines Matching refs:endpoint

66         endpoint = std::make_shared<MockMCTPEndpoint>();
67 EXPECT_CALL(*endpoint, device())
69 EXPECT_CALL(*endpoint, describe())
70 .WillRepeatedly(testing::Return("mock endpoint"));
71 EXPECT_CALL(*endpoint, eid()).WillRepeatedly(testing::Return(9));
72 EXPECT_CALL(*endpoint, network()).WillRepeatedly(testing::Return(1));
78 EXPECT_TRUE(testing::Mock::VerifyAndClearExpectations(endpoint.get()));
85 std::shared_ptr<MockMCTPEndpoint> endpoint;
99 std::make_error_code(std::errc::permission_denied), endpoint));
118 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() {
119 removeHandler(endpoint);
121 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_))
125 endpoint->remove();
128 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint));
147 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() {
148 removeHandler(endpoint);
150 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_))
154 endpoint->remove();
158 std::make_error_code(std::errc::permission_denied), endpoint))
159 .WillOnce(testing::InvokeArgument<0>(std::error_code(), endpoint));
181 EXPECT_CALL(*endpoint, remove()).WillOnce(testing::Invoke([&]() {
182 removeHandler(endpoint);
184 EXPECT_CALL(*endpoint, subscribe(testing::_, testing::_, testing::_))
189 endpoint->remove();
194 testing::InvokeArgument<0>(std::error_code(), endpoint));
197 removeHandler(endpoint);
222 .WillRepeatedly(testing::Return("mock endpoint: initial"));
244 .WillRepeatedly(testing::Return("mock endpoint: replacement"));
286 auto endpoint = std::make_shared<MockMCTPEndpoint>();
287 EXPECT_CALL(*endpoint, device())
289 EXPECT_CALL(*endpoint, describe())
290 .WillRepeatedly(testing::Return("mock endpoint"));
291 EXPECT_CALL(*endpoint, eid()).WillRepeatedly(testing::Return(9));
292 EXPECT_CALL(*endpoint, network()).WillRepeatedly(testing::Return(1));
316 auto endpoint = std::make_shared<MockMCTPEndpoint>();
317 EXPECT_CALL(*endpoint, device())
319 EXPECT_CALL(*endpoint, describe())
320 .WillRepeatedly(testing::Return("mock endpoint"));
321 EXPECT_CALL(*endpoint, eid()).WillRepeatedly(testing::Return(9));
322 EXPECT_CALL(*endpoint, network())
325 EXPECT_CALL(*endpoint, remove());
330 .WillOnce(testing::Invoke([ep{endpoint}]() { ep->remove(); }));
334 endpoint))
343 testing::Mock::VerifyAndClearExpectations(endpoint.get());
344 wep = endpoint;