1 /* 2 * Copyright 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /* 18 * Generated mock file from original source file 19 * Functions generated:1 20 * 21 * mockcify.pl ver 0.3.0 22 */ 23 24 #include <cstdint> 25 #include <functional> 26 #include <map> 27 #include <string> 28 29 #include "test/common/mock_functions.h" 30 31 // Original included files, if any 32 // NOTE: Since this is a mock file with mock definitions some number of 33 // include files may not be required. The include-what-you-use 34 // still applies, but crafting proper inclusion is out of scope 35 // for this effort. This compilation unit may compile as-is, or 36 // may need attention to prune from (or add to ) the inclusion set. 37 #include "base/logging.h" 38 #include "check.h" 39 #include "device/include/esco_parameters.h" 40 41 // Mocked compile conditionals, if any 42 43 namespace test { 44 namespace mock { 45 namespace device_esco_parameters { 46 47 // Shared state between mocked functions and tests 48 // Name: esco_parameters_for_codec 49 // Params: esco_codec_t codec 50 // Return: enh_esco_params_t 51 struct esco_parameters_for_codec { 52 enh_esco_params_t return_value{}; 53 std::function<enh_esco_params_t(esco_codec_t codec)> body{ 54 [this](esco_codec_t codec) { return return_value; }}; operatoresco_parameters_for_codec55 enh_esco_params_t operator()(esco_codec_t codec) { return body(codec); }; 56 }; 57 extern struct esco_parameters_for_codec esco_parameters_for_codec; 58 59 } // namespace device_esco_parameters 60 } // namespace mock 61 } // namespace test 62 63 // END mockcify generation 64