Lines Matching refs:msgs
104 msgs::Type::kPresentationUrlAvailabilityRequest, &mock_callback_); in SetUp()
114 msgs::PresentationUrlAvailabilityRequest* request) { in ExpectAvailabilityRequest()
116 msgs::Type msg_type; in ExpectAvailabilityRequest()
120 msgs::Type message_type, const uint8_t* buffer, in ExpectAvailabilityRequest()
123 decode_result = msgs::DecodePresentationUrlAvailabilityRequest( in ExpectAvailabilityRequest()
128 ASSERT_EQ(msg_type, msgs::Type::kPresentationUrlAvailabilityRequest); in ExpectAvailabilityRequest()
133 const msgs::PresentationUrlAvailabilityResponse& response) { in SendAvailabilityResponse()
142 response, msgs::EncodePresentationUrlAvailabilityResponse) in SendAvailabilityResponse()
146 void SendStartResponse(const msgs::PresentationStartResponse& response) { in SendStartResponse()
155 ->WriteMessage(response, msgs::EncodePresentationStartResponse) in SendStartResponse()
160 const msgs::PresentationUrlAvailabilityEvent& event) { in SendAvailabilityEvent()
169 ->WriteMessage(event, msgs::EncodePresentationUrlAvailabilityEvent) in SendAvailabilityEvent()
174 const msgs::PresentationTerminationResponse& response) { in SendTerminationResponse()
183 msgs::EncodePresentationTerminationResponse) in SendTerminationResponse()
187 void SendTerminationEvent(const msgs::PresentationTerminationEvent& event) { in SendTerminationEvent()
196 ->WriteMessage(event, msgs::EncodePresentationTerminationEvent) in SendTerminationEvent()
201 msgs::PresentationConnectionCloseRequest* request, in ExpectCloseRequest()
204 msgs::Type msg_type; in ExpectCloseRequest()
208 msgs::Type message_type, const uint8_t* buffer, in ExpectCloseRequest()
211 decode_result = msgs::DecodePresentationConnectionCloseRequest( in ExpectCloseRequest()
218 ASSERT_EQ(msg_type, msgs::Type::kPresentationConnectionCloseRequest); in ExpectCloseRequest()
223 const msgs::PresentationConnectionCloseResponse& response) { in SendCloseResponse()
232 response, msgs::EncodePresentationConnectionCloseResponse) in SendCloseResponse()
237 const msgs::PresentationConnectionOpenResponse& response) { in SendOpenResponse()
246 msgs::EncodePresentationConnectionOpenResponse) in SendOpenResponse()
255 msgs::Type::kPresentationStartRequest, mock_callback); in StartPresentation()
260 msgs::PresentationStartRequest request; in StartPresentation()
261 msgs::Type msg_type; in StartPresentation()
265 msgs::Type message_type, const uint8_t* buffer, in StartPresentation()
268 ssize_t result = msgs::DecodePresentationStartRequest( in StartPresentation()
277 ASSERT_EQ(msgs::Type::kPresentationStartRequest, msg_type); in StartPresentation()
279 msgs::PresentationStartResponse response; in StartPresentation()
281 response.result = msgs::PresentationStartResponse_result::kSuccess; in StartPresentation()
345 msgs::PresentationUrlAvailabilityRequest request; in TEST_F()
348 msgs::PresentationUrlAvailabilityResponse response; in TEST_F()
350 response.url_availabilities.push_back(msgs::UrlAvailability::kAvailable); in TEST_F()
366 msgs::PresentationUrlAvailabilityRequest request; in TEST_F()
369 msgs::PresentationUrlAvailabilityResponse response; in TEST_F()
371 response.url_availabilities.push_back(msgs::UrlAvailability::kAvailable); in TEST_F()
382 msgs::PresentationUrlAvailabilityEvent event; in TEST_F()
384 event.url_availabilities.push_back(msgs::UrlAvailability::kUnavailable); in TEST_F()
407 msgs::Type::kPresentationTerminationRequest, &mock_callback); in TEST_F()
408 msgs::PresentationTerminationRequest termination_request; in TEST_F()
409 msgs::Type msg_type; in TEST_F()
413 msgs::Type message_type, const uint8_t* buffer, in TEST_F()
416 ssize_t result = msgs::DecodePresentationTerminationRequest( in TEST_F()
423 ASSERT_EQ(msgs::Type::kPresentationTerminationRequest, msg_type); in TEST_F()
424 msgs::PresentationTerminationResponse termination_response; in TEST_F()
427 msgs::PresentationTerminationResponse_result::kSuccess; in TEST_F()
441 msgs::PresentationTerminationEvent termination_event; in TEST_F()
444 msgs::PresentationTerminationEvent_reason::kReceiverCalledTerminate; in TEST_F()
459 msgs::Type::kPresentationConnectionCloseRequest, &mock_callback); in TEST_F()
460 msgs::PresentationConnectionCloseRequest close_request; in TEST_F()
463 msgs::PresentationConnectionCloseResponse close_response; in TEST_F()
466 msgs::PresentationConnectionCloseResponse_result::kSuccess; in TEST_F()
479 msgs::Type::kPresentationConnectionCloseRequest, &mock_callback); in TEST_F()
480 msgs::PresentationConnectionCloseRequest close_request; in TEST_F()
483 msgs::PresentationConnectionCloseResponse close_response; in TEST_F()
486 msgs::PresentationConnectionCloseResponse_result::kSuccess; in TEST_F()
492 msgs::Type::kPresentationConnectionOpenRequest, &mock_callback); in TEST_F()
493 msgs::PresentationConnectionOpenRequest open_request; in TEST_F()
500 msgs::Type msg_type; in TEST_F()
504 msgs::Type message_type, const uint8_t* buffer, in TEST_F()
507 decode_result = msgs::DecodePresentationConnectionOpenRequest( in TEST_F()
514 ASSERT_EQ(msg_type, msgs::Type::kPresentationConnectionOpenRequest); in TEST_F()
516 msgs::PresentationConnectionOpenResponse open_response; in TEST_F()
520 msgs::PresentationConnectionOpenResponse_result::kSuccess; in TEST_F()