1 /* 2 * Copyright (c) 2025 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 DSCHED_COLLAB_TEST 17 #define DSCHED_COLLAB_TEST 18 #include "dsched_collab.h" 19 20 #include "gtest/gtest.h" 21 22 #include "mock/bundle_manager_internal_mock.h" 23 #include "mock/distributed_sched_permission_mock.h" 24 #include "mock/distributed_sched_service_mock.h" 25 #include "mock/dsched_transport_softbus_adapter_mock.h" 26 #include "mock/message_parcel_mock.h" 27 28 namespace OHOS { 29 namespace DistributedSchedule { 30 31 class DSchedCollabTest : public testing::Test { 32 public: 33 static void SetUpTestCase(); 34 static void TearDownTestCase(); 35 void SetUp(); 36 void TearDown(); 37 38 static inline std::shared_ptr<MessageParcelMock> messageParcelMock_ = nullptr; 39 static inline std::shared_ptr<DSchedTransportSoftbusAdapterMock> adapterMock_ = nullptr; 40 static inline std::shared_ptr<BundleManagerInternalMock> bundleMgrMock_ = nullptr; 41 static inline std::shared_ptr<DistributedSchedPermMock> dmsPermMock_ = nullptr; 42 static inline std::shared_ptr<DistributedSchedServiceMock> dmsSrvMock_ = nullptr; 43 static inline std::shared_ptr<DSchedCollab> dSchedCollab_; 44 }; 45 } // namespace DistributedSchedule 46 } // namespace OHOS 47 #endif // DSCHED_COLLAB_TEST