1 /* 2 * Copyright (c) 2024 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 OHOS_DMS_CLIENT_TEST_H 17 #define OHOS_DMS_CLIENT_TEST_H 18 19 #include "dms_client.h" 20 21 #include <string> 22 23 #include "ability_manager_errors.h" 24 #include "distributed_event_listener.h" 25 #include "dms_sdk_demo.h" 26 #include "gtest/gtest.h" 27 #include "iremote_broker.h" 28 29 30 namespace OHOS { 31 namespace DistributedSchedule { 32 class DistributedClientTest : public testing::Test { 33 public: 34 static void SetUpTestCase(); 35 static void TearDownTestCase(); 36 void SetUp(); 37 void TearDown(); 38 39 protected: 40 DistributedClient distributedClient_; 41 }; 42 43 class BusinessHandlerTest : public DSchedEventListenerStub { 44 public: 45 BusinessHandlerTest() = default; 46 ~BusinessHandlerTest() = default; 47 48 void DSchedEventNotify(EventNotify ¬ify); 49 }; 50 } // namespace DistributedSchedule 51 } // namespace OHOS 52 #endif // OHOS_DMS_CLIENT_TEST_H