mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-19 17:08:11 -04:00
80e9a38e12
Signed-off-by: chenqinxin <chenqinxin1@huawei.com> Change-Id: I339eaf94f38f27e3e3dce808d899f80430a258df
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef OHOS_ROSEN_INATIVE_TEST_H
|
|
#define OHOS_ROSEN_INATIVE_TEST_H
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
namespace OHOS::Rosen {
|
|
class INativeTest;
|
|
using VisitTestFunc = std::function<void(INativeTest *)>;
|
|
|
|
class INativeTest {
|
|
public:
|
|
static constexpr uint32_t LAST_TIME_FOREVER = 999999999,
|
|
|
|
static void VisitTests(VisitTestFunc func);
|
|
INativeTest();
|
|
virtual ~INativeTest() = default;
|
|
|
|
virtual std::string GetDescription() const = 0;
|
|
virtual std::string GetDomain() const = 0;
|
|
virtual int32_t GetID() const = 0;
|
|
virtual uint32_t GetLastTime() const = 0;
|
|
virtual void Run(int32_t argc, const char **argv) = 0;
|
|
private:
|
|
static inline std::vector<INativeTest *> nativeTest_;
|
|
};
|
|
} // namespace OHOS::Rosen
|
|
|
|
#endif // OHOS_ROSEN_INATIVE_TEST_H
|