1 /* 2 * Copyright (c) 2023 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 #ifndef HDI_COMPOSER_UT_H 17 #define HDI_COMPOSER_UT_H 18 #include "v1_0/display_composer_type.h" 19 #include "v1_0/display_buffer_type.h" 20 #include "v1_2/include/idisplay_composer_interface.h" 21 #include "display_test_utils.h" 22 #include "gtest/gtest.h" 23 #include <iremote_broker.h> 24 #include <condition_variable> 25 #include <mutex> 26 #include <vector> 27 28 namespace OHOS { 29 namespace HDI { 30 namespace Display { 31 namespace TEST { 32 using namespace OHOS::HDI::Display::Buffer::V1_0; 33 using namespace OHOS::HDI::Display::Composer::V1_0; 34 35 class DeathTest : public ::testing::Test { 36 public: 37 sptr<IDisplayComposerInterface> displayComposer_; 38 }; 39 } // namespace SYSTEMTEST 40 } // namespace Display 41 } // namespace HDI 42 } // namespace OHOS 43 44 namespace OHOS { 45 class ComposerDiedRecipient : public IRemoteObject::DeathRecipient { 46 public: 47 ComposerDiedRecipient() = default; 48 virtual ~ComposerDiedRecipient() = default; 49 void OnRemoteDied(const wptr<IRemoteObject>& remote) override; 50 }; 51 } 52 #endif // HDI_DEVICE_SYSTEM_TEST_H