1 /* 2 * Copyright 2022 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 #pragma once 17 18 /* 19 * Generated mock file from original source file 20 * Functions generated:1 21 * 22 * mockcify.pl ver 0.5.0 23 */ 24 25 #include <cstdint> 26 #include <functional> 27 #include <map> 28 #include <string> 29 30 #include "test/common/mock_functions.h" 31 32 // Original included files, if any 33 // NOTE: Since this is a mock file with mock definitions some number of 34 // include files may not be required. The include-what-you-use 35 // still applies, but crafting proper inclusion is out of scope 36 // for this effort. This compilation unit may compile as-is, or 37 // may need attention to prune from (or add to ) the inclusion set. 38 #include <base/functional/bind.h> 39 40 #include "btif/avrcp/avrcp_service.h" 41 42 // Original usings 43 44 // Mocked compile conditionals, if any 45 46 namespace test { 47 namespace mock { 48 namespace btif_avrcp_service { 49 50 // Shared state between mocked functions and tests 51 // Name: do_in_avrcp_jni 52 // Params: const base::Closure& task 53 // Return: void 54 struct do_in_avrcp_jni { 55 std::function<void(const base::Closure& task)> body{ 56 [](const base::Closure& task) {}}; operatordo_in_avrcp_jni57 void operator()(const base::Closure& task) { body(task); }; 58 }; 59 extern struct do_in_avrcp_jni do_in_avrcp_jni; 60 61 } // namespace btif_avrcp_service 62 } // namespace mock 63 } // namespace test 64 65 // END mockcify generation 66