• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 #include <gtest/gtest.h>
16 #include "print_callback_stub.h"
17 #include "print_manager_client.h"
18 #include "iremote_broker.h"
19 #include "print_constant.h"
20 #include "print_log.h"
21 #include "print_resolution.h"
22 #include "print_sa_death_recipient.h"
23 
24 using namespace testing::ext;
25 
26 namespace OHOS {
27 namespace Print {
28 class PrintSaDeathRecipientTest : public testing::Test {
29 public:
30     static void SetUpTestCase(void);
31     static void TearDownTestCase(void);
32     void SetUp();
33     void TearDown();
34 };
35 
SetUpTestCase(void)36 void PrintSaDeathRecipientTest::SetUpTestCase(void) {}
37 
TearDownTestCase(void)38 void PrintSaDeathRecipientTest::TearDownTestCase(void) {}
39 
SetUp(void)40 void PrintSaDeathRecipientTest::SetUp(void) {}
41 
TearDown(void)42 void PrintSaDeathRecipientTest::TearDown(void) {}
43 
44 HWTEST_F(PrintSaDeathRecipientTest, PrintSaDeathRecipientTest_0001, TestSize.Level1)
45 {
46     wptr<IRemoteObject> remote;
47     PrintSaDeathRecipient rec;
48     rec.OnRemoteDied(remote);
49 }
50 }  // namespace Print
51 }  // namespace OHOS
52