1 // SPDX-License-Identifier: BSD-3-Clause 2 // 3 // Copyright(c) 2022 Intel Corporation. All rights reserved. 4 // 5 6 struct processing_module_test_parameters { 7 uint32_t channels; 8 uint32_t frames; 9 uint32_t buffer_size_ms; 10 uint32_t source_format; 11 uint32_t sink_format; 12 void (*verify)(struct processing_module *mod, struct comp_buffer *sink, 13 struct comp_buffer *source); 14 }; 15 16 struct processing_module_test_data { 17 struct processing_module *mod; 18 struct comp_buffer **sinks; 19 struct comp_buffer **sources; 20 struct input_stream_buffer **input_buffers; 21 struct output_stream_buffer **output_buffers; 22 uint32_t num_sources; 23 uint32_t num_sinks; 24 struct processing_module_test_parameters parameters; 25 void (*verify)(struct processing_module *mod, struct comp_buffer *sink, 26 struct comp_buffer *source); 27 }; 28 29 int module_adapter_test_setup(struct processing_module_test_data *test_data); 30 void module_adapter_test_free(struct processing_module_test_data *test_data); 31