1 /* 2 * Copyright (c) 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 16 #include "executor_hitrace_chain_test.h" 17 18 #include "executor_hitrace_chain.h" 19 20 using namespace std; 21 using namespace testing::ext; 22 23 namespace OHOS { 24 namespace ResourceSchedule { 25 namespace { 26 } 27 SetUpTestCase()28void ExecutorHiTraceChainTest::SetUpTestCase() {} 29 TearDownTestCase()30void ExecutorHiTraceChainTest::TearDownTestCase() {} 31 SetUp()32void ExecutorHiTraceChainTest::SetUp() {} 33 TearDown()34void ExecutorHiTraceChainTest::TearDown() {} 35 /** 36 * @tc.name: ExecutorHiTraceChainTest ExecutorHiTraceChainTest_001 37 * @tc.desc: test ExecutorHiTraceChainTest_001 38 * @tc.type: FUNC 39 * @tc.require: add tracechain 40 */ 41 HWTEST_F(ExecutorHiTraceChainTest, ExecutorHiTraceChainTest_001, Function | MediumTest | Level0) 42 { 43 ExecutorHiTraceChain traceChain(__func__); 44 EXPECT_TRUE(traceChain.isBegin_); 45 EXPECT_TRUE(HiTraceChainIsValid(&traceChain.traceId_)); 46 } 47 48 } // namespace ResourceSchedule 49 } // namespace OHOS 50