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 16 #include <gtest/gtest.h> 17 #include "ability_token_proxy.h" 18 19 using namespace testing::ext; 20 namespace OHOS { 21 namespace AAFwk { 22 class AbilityTokenProxyTest : public testing::Test { 23 public: 24 static void SetUpTestCase(void); 25 static void TearDownTestCase(void); 26 void SetUp(); 27 void TearDown(); 28 29 OHOS::sptr<AbilityTokenProxy> abilityTokenProxy_ = nullptr; 30 OHOS::sptr<OHOS::IRemoteObject> impl = nullptr; 31 }; 32 SetUpTestCase(void)33void AbilityTokenProxyTest::SetUpTestCase(void) 34 {} TearDownTestCase(void)35void AbilityTokenProxyTest::TearDownTestCase(void) 36 {} TearDown(void)37void AbilityTokenProxyTest::TearDown(void) 38 {} 39 SetUp(void)40void AbilityTokenProxyTest::SetUp(void) 41 { 42 abilityTokenProxy_ = new AbilityTokenProxy(impl); 43 } 44 45 /* 46 * Feature: AbilityTokenProxy 47 * Function: AbilityTokenProxy 48 * SubFunction: NA 49 * FunctionPoints: NA 50 * EnvConditions:NA 51 * CaseDescription: verify AbilityTokenProxy is create success 52 */ 53 HWTEST_F(AbilityTokenProxyTest, ability_token_proxy_operating_001, TestSize.Level1) 54 { 55 EXPECT_NE(abilityTokenProxy_, nullptr); 56 } 57 } // namespace AAFwk 58 } // namespace OHOS 59