19762338dSopenharmony_ci/*
29762338dSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
39762338dSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
49762338dSopenharmony_ci * you may not use this file except in compliance with the License.
59762338dSopenharmony_ci * You may obtain a copy of the License at
69762338dSopenharmony_ci *
79762338dSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
89762338dSopenharmony_ci *
99762338dSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
109762338dSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
119762338dSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129762338dSopenharmony_ci * See the License for the specific language governing permissions and
139762338dSopenharmony_ci * limitations under the License.
149762338dSopenharmony_ci */
159762338dSopenharmony_ci
169762338dSopenharmony_ci#ifndef HDI_COMPOSER_UT_H
179762338dSopenharmony_ci#define HDI_COMPOSER_UT_H
189762338dSopenharmony_ci#include "v1_0/display_composer_type.h"
199762338dSopenharmony_ci#include "v1_0/display_buffer_type.h"
209762338dSopenharmony_ci#include "v1_2/include/idisplay_composer_interface.h"
219762338dSopenharmony_ci#include "display_test_utils.h"
229762338dSopenharmony_ci#include "gtest/gtest.h"
239762338dSopenharmony_ci#include <iremote_broker.h>
249762338dSopenharmony_ci#include <condition_variable>
259762338dSopenharmony_ci#include <mutex>
269762338dSopenharmony_ci#include <vector>
279762338dSopenharmony_ci
289762338dSopenharmony_cinamespace OHOS {
299762338dSopenharmony_cinamespace HDI {
309762338dSopenharmony_cinamespace Display {
319762338dSopenharmony_cinamespace TEST {
329762338dSopenharmony_ciusing namespace OHOS::HDI::Display::Buffer::V1_0;
339762338dSopenharmony_ciusing namespace OHOS::HDI::Display::Composer::V1_0;
349762338dSopenharmony_ci
359762338dSopenharmony_ciclass DeathTest : public ::testing::Test {
369762338dSopenharmony_cipublic:
379762338dSopenharmony_ci    sptr<IDisplayComposerInterface> displayComposer_;
389762338dSopenharmony_ci};
399762338dSopenharmony_ci} // namespace SYSTEMTEST
409762338dSopenharmony_ci} // namespace Display
419762338dSopenharmony_ci} // namespace HDI
429762338dSopenharmony_ci} // namespace OHOS
439762338dSopenharmony_ci
449762338dSopenharmony_cinamespace OHOS {
459762338dSopenharmony_ciclass ComposerDiedRecipient : public IRemoteObject::DeathRecipient {
469762338dSopenharmony_cipublic:
479762338dSopenharmony_ci    ComposerDiedRecipient() = default;
489762338dSopenharmony_ci    virtual ~ComposerDiedRecipient() = default;
499762338dSopenharmony_ci    void OnRemoteDied(const wptr<IRemoteObject>& remote) override;
509762338dSopenharmony_ci};
519762338dSopenharmony_ci}
529762338dSopenharmony_ci#endif // HDI_DEVICE_SYSTEM_TEST_H