• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <cstdint>
27 #include <functional>
28 #include <map>
29 #include <string>
30 
31 #include "test/common/mock_functions.h"
32 
33 // Original included files, if any
34 // NOTE: Since this is a mock file with mock definitions some number of
35 //       include files may not be required.  The include-what-you-use
36 //       still applies, but crafting proper inclusion is out of scope
37 //       for this effort.  This compilation unit may compile as-is, or
38 //       may need attention to prune from (or add to ) the inclusion set.
39 #include <private/android_filesystem_config.h>
40 #include <unistd.h>
41 
42 // Mocked compile conditionals, if any
43 
44 namespace test {
45 namespace mock {
46 namespace common_os_utils {
47 
48 // Shared state between mocked functions and tests
49 // Name: is_bluetooth_uid
50 // Params:
51 // Return: bool
52 struct is_bluetooth_uid {
53   static bool return_value;
54   std::function<bool()> body{[]() { return return_value; }};
operatoris_bluetooth_uid55   bool operator()() { return body(); };
56 };
57 extern struct is_bluetooth_uid is_bluetooth_uid;
58 
59 }  // namespace common_os_utils
60 }  // namespace mock
61 }  // namespace test
62 
63 // END mockcify generation