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:2
20 *
21 * mockcify.pl ver 0.3.0
22 */
23
24 #include <cstdint>
25 #include <functional>
26 #include <map>
27 #include <string>
28
29 // Mock include file to share data between tests and mock
30 #include "test/mock/mock_osi_thread_scheduler.h"
31
32 // Mocked internal structures, if any
33
34 namespace test {
35 namespace mock {
36 namespace osi_thread_scheduler {
37
38 // Function state capture and return values, if needed
39 struct thread_scheduler_enable_real_time thread_scheduler_enable_real_time;
40 struct thread_scheduler_get_priority_range thread_scheduler_get_priority_range;
41
42 } // namespace osi_thread_scheduler
43 } // namespace mock
44 } // namespace test
45
46 // Mocked functions, if any
thread_scheduler_enable_real_time(pid_t linux_tid)47 bool thread_scheduler_enable_real_time(pid_t linux_tid) {
48 inc_func_call_count(__func__);
49 return test::mock::osi_thread_scheduler::thread_scheduler_enable_real_time(
50 linux_tid);
51 }
thread_scheduler_get_priority_range(int & min,int & max)52 bool thread_scheduler_get_priority_range(int& min, int& max) {
53 inc_func_call_count(__func__);
54 return test::mock::osi_thread_scheduler::thread_scheduler_get_priority_range(
55 min, max);
56 }
57 // Mocked functions complete
58 // END mockcify generation
59