1c1ed15f1Sopenharmony_ci/*
2c1ed15f1Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
3c1ed15f1Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4c1ed15f1Sopenharmony_ci * you may not use this file except in compliance with the License.
5c1ed15f1Sopenharmony_ci * You may obtain a copy of the License at
6c1ed15f1Sopenharmony_ci *
7c1ed15f1Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8c1ed15f1Sopenharmony_ci *
9c1ed15f1Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10c1ed15f1Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11c1ed15f1Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12c1ed15f1Sopenharmony_ci * See the License for the specific language governing permissions and
13c1ed15f1Sopenharmony_ci * limitations under the License.
14c1ed15f1Sopenharmony_ci */
15c1ed15f1Sopenharmony_ci
16c1ed15f1Sopenharmony_ci#ifndef SERVICE_CHECKER_SELINUX_UNIT_TEST_H
17c1ed15f1Sopenharmony_ci#define SERVICE_CHECKER_SELINUX_UNIT_TEST_H
18c1ed15f1Sopenharmony_ci
19c1ed15f1Sopenharmony_ci#include <gtest/gtest.h>
20c1ed15f1Sopenharmony_ci#include "selinux/avc.h"
21c1ed15f1Sopenharmony_ci
22c1ed15f1Sopenharmony_cinamespace OHOS {
23c1ed15f1Sopenharmony_cinamespace Security {
24c1ed15f1Sopenharmony_cinamespace SelinuxUnitTest {
25c1ed15f1Sopenharmony_ciclass SelinuxUnitTest : public testing::Test {
26c1ed15f1Sopenharmony_cipublic:
27c1ed15f1Sopenharmony_ci    static void SetUpTestCase();
28c1ed15f1Sopenharmony_ci
29c1ed15f1Sopenharmony_ci    static void TearDownTestCase();
30c1ed15f1Sopenharmony_ci
31c1ed15f1Sopenharmony_ci    void SetUp();
32c1ed15f1Sopenharmony_ci
33c1ed15f1Sopenharmony_ci    void TearDown();
34c1ed15f1Sopenharmony_ci
35c1ed15f1Sopenharmony_ci    void CreateDataFile() const;
36c1ed15f1Sopenharmony_ci};
37c1ed15f1Sopenharmony_ci} // namespace Selinux
38c1ed15f1Sopenharmony_ci} // namespace Security
39c1ed15f1Sopenharmony_ci} // namespace OHOS
40c1ed15f1Sopenharmony_ci#endif // SERVICE_CHECKER_SELINUX_UNIT_TEST_H
41