/* * Copyright (c) 2021-2022 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. */ #include #include "mmi_client.h" namespace OHOS { namespace MMI { namespace { using namespace testing::ext; } // namespace class MMIClientTest : public testing::Test { public: static void SetUpTestCase(void) {} static void TearDownTestCase(void) {} }; ConnectCallback connectFun; /** * @tc.name: RegisterConnectedFunction * @tc.desc: Verify register connected * @tc.type: FUNC * @tc.require: */ HWTEST_F(MMIClientTest, RegisterConnectedFunction, TestSize.Level1) { MMIClient mmiClient; ASSERT_NO_FATAL_FAILURE(mmiClient.RegisterConnectedFunction(connectFun)); } /** * @tc.name: RegisterDisconnectedFunction * @tc.desc: Verify register disconnected * @tc.type: FUNC * @tc.require: */ HWTEST_F(MMIClientTest, RegisterDisconnectedFunction, TestSize.Level1) { MMIClient mmiClient; ASSERT_NO_FATAL_FAILURE(mmiClient.RegisterDisconnectedFunction(connectFun)); } } } // namespace MMI