1 /*
2  * Copyright (c) 2022 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 
16 #define private public
17 #define protected public
18 #include <gtest/gtest.h>
19 #include <thread>
20 #include "eu/cpu_monitor.h"
21 #include "eu/cpu_worker.h"
22 #include "eu/scpuworker_manager.h"
23 #include "eu/cpu_manager_strategy.h"
24 #include "eu/worker_thread.h"
25 #include "qos.h"
26 #include "common.h"
27 #undef private
28 #undef protected
29 
30 namespace OHOS {
31 namespace FFRT_TEST {
32 using namespace testing;
33 #ifdef HWTEST_TESTING_EXT_ENABLE
34 using namespace testing::ext;
35 #endif
36 using namespace OHOS::FFRT_TEST;
37 using namespace ffrt;
38 using namespace std;
39 
40 
41 class CpuWorkerTest : public testing::Test {
42 protected:
SetUpTestCase()43     static void SetUpTestCase()
44     {
45     }
46 
TearDownTestCase()47     static void TearDownTestCase()
48     {
49     }
50 
SetUp()51     virtual void SetUp()
52     {
53     }
54 
TearDown()55     virtual void TearDown()
56     {
57     }
58 };
59 
60 /**
61  * @tc.name: Start
62  * @tc.desc: Test whether the Start interface are normal.
63  * @tc.type: FUNC
64  */
65 }
66 }
67