1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CAST_SENDER_TESTING_TEST_HELPERS_H_ 6 #define CAST_SENDER_TESTING_TEST_HELPERS_H_ 7 8 #include <cstdint> 9 #include <string> 10 11 #include "cast/sender/channel/message_util.h" 12 13 namespace cast { 14 namespace channel { 15 class CastMessage; 16 } // namespace channel 17 } // namespace cast 18 19 namespace openscreen { 20 namespace cast { 21 22 void VerifyAppAvailabilityRequest(const ::cast::channel::CastMessage& message, 23 const std::string& expected_app_id, 24 int* request_id_out, 25 std::string* sender_id_out); 26 void VerifyAppAvailabilityRequest(const ::cast::channel::CastMessage& message, 27 std::string* app_id_out, 28 int* request_id_out, 29 std::string* sender_id_out); 30 31 ::cast::channel::CastMessage CreateAppAvailableResponseChecked( 32 int request_id, 33 const std::string& sender_id, 34 const std::string& app_id); 35 ::cast::channel::CastMessage CreateAppUnavailableResponseChecked( 36 int request_id, 37 const std::string& sender_id, 38 const std::string& app_id); 39 40 } // namespace cast 41 } // namespace openscreen 42 43 #endif // CAST_SENDER_TESTING_TEST_HELPERS_H_ 44