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_HANDLER_TEST_H
17 #define OHOS_DMS_HANDLER_TEST_H
18 
19 #include "dms_handler.h"
20 
21 #include <condition_variable>
22 #include <map>
23 #include <mutex>
24 #include <string>
25 #include <vector>
26 
27 #include "distributed_event_listener.h"
28 #include "dms_sa_client.h"
29 #include "dms_sdk_demo.h"
30 #include "gtest/gtest.h"
31 #include "refbase.h"
32 #include "single_instance.h"
33 
34 namespace OHOS {
35 namespace DistributedSchedule {
36 class DmsHandlerTest : public testing::Test {
37 public:
38     static void SetUpTestCase();
39     static void TearDownTestCase();
40     void SetUp();
41     void TearDown();
42     void DSchedEventNotify(EventNotify &notify);
43 
44     DmsHandler dmsHandler_;
45 };
46 
47 class BusinessTest : public DSchedEventListenerStub {
48 public:
49     BusinessTest() = default;
50     ~BusinessTest() = default;
51 
52     void DSchedEventNotify(EventNotify &notify);
53 };
54 } // namespace DistributedSchedule
55 } // namespace OHOS
56 #endif // OHOS_DMS_HANDLER_TEST_H