1 /* 2 * Copyright (c) 2022 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 #ifndef OHOS_UTTEST_HICHAIN_CONNECTOR_H 16 #define OHOS_UTTEST_HICHAIN_CONNECTOR_H 17 18 #include <gtest/gtest.h> 19 #include <refbase.h> 20 #include <string> 21 #include <memory> 22 #include <cstdint> 23 #include <map> 24 #include <vector> 25 26 #include "nlohmann/json.hpp" 27 #include "device_auth.h" 28 #include "single_instance.h" 29 #include "hichain_connector_callback.h" 30 #include "device_manager_service_listener.h" 31 #include "dm_auth_manager.h" 32 #include "dm_device_state_manager.h" 33 #define private public 34 #include "hichain_connector.h" 35 #undef private 36 37 namespace OHOS { 38 namespace DistributedHardware { 39 class HichainConnectorTest : public testing::Test { 40 public: 41 static void SetUpTestCase(); 42 static void TearDownTestCase(); 43 virtual void SetUp() override; 44 virtual void TearDown() override; 45 }; 46 } // namespace DistributedHardware 47 } // namespace OHOS 48 #endif // OHOS_HICHAIN_CONNECTOR_H 49