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 <functional> 26 27 // Original included files, if any 28 #include <base/functional/bind.h> 29 30 // Original usings 31 32 // Mocked compile conditionals, if any 33 34 namespace test { 35 namespace mock { 36 namespace btif_avrcp_service { 37 38 // Shared state between mocked functions and tests 39 // Name: do_in_avrcp_jni 40 // Params: const base::Closure& task 41 // Return: void 42 struct do_in_avrcp_jni { 43 std::function<void(const base::Closure& task)> body{ 44 [](const base::Closure& /* task */) {}}; operatordo_in_avrcp_jni45 void operator()(const base::Closure& task) { body(task); }; 46 }; 47 extern struct do_in_avrcp_jni do_in_avrcp_jni; 48 49 } // namespace btif_avrcp_service 50 } // namespace mock 51 } // namespace test 52 53 // END mockcify generation 54