• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef MOCK_FFRT_API_CPP_DEADLINE_H
16 #define MOCK_FFRT_API_CPP_DEADLINE_H
17 #include <stdint.h>
18 #include "c/deadline.h"
19 
20 namespace ffrt {
21 using interval = ffrt_interval_t;
22 
23 static inline interval qos_interval_create(uint64_t deadline_us, qos qos_ = static_cast<int>(qos_deadline_request))
24 {
25     return {};
26 }
27 
qos_interval_destroy(interval it)28 static inline void qos_interval_destroy(interval it)
29 {}
30 
qos_interval_begin(interval it)31 static inline int qos_interval_begin(interval it)
32 {
33     return 0;
34 }
35 
qos_interval_update(interval it,uint64_t new_deadline_us)36 static inline int qos_interval_update(interval it, uint64_t new_deadline_us)
37 {
38     return 0;
39 }
40 
qos_interval_end(interval it)41 static inline int qos_interval_end(interval it)
42 {
43     return 0;
44 }
45 
qos_interval_join(interval it)46 static inline int qos_interval_join(interval it)
47 {
48     return 0;
49 }
50 
qos_interval_leave(interval it)51 static inline int qos_interval_leave(interval it)
52 {
53     return 0;
54 }
55 };  // namespace ffrt
56 
57 #endif