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 #pragma once 18 19 /* 20 * Generated mock file from original source file 21 * Functions generated:1 22 * 23 * mockcify.pl ver 0.3.0 24 */ 25 26 #include <functional> 27 28 // Original included files, if any 29 #include <private/android_filesystem_config.h> 30 #include <unistd.h> 31 32 // Mocked compile conditionals, if any 33 34 namespace test { 35 namespace mock { 36 namespace common_os_utils { 37 38 // Shared state between mocked functions and tests 39 // Name: is_bluetooth_uid 40 // Params: 41 // Return: bool 42 struct is_bluetooth_uid { 43 static bool return_value; 44 std::function<bool()> body{[]() { return return_value; }}; operatoris_bluetooth_uid45 bool operator()() { return body(); }; 46 }; 47 extern struct is_bluetooth_uid is_bluetooth_uid; 48 49 } // namespace common_os_utils 50 } // namespace mock 51 } // namespace test 52 53 // END mockcify generation