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 
16 #ifndef MOCK_GEO_CONVERT_SERVICE_H
17 #define MOCK_GEO_CONVERT_SERVICE_H
18 #ifdef FEATURE_GEOCODE_SUPPORT
19 
20 #include <mutex>
21 #include <singleton.h>
22 #include <string>
23 #include <vector>
24 
25 #include <gmock/gmock.h>
26 #include <gtest/gtest.h>
27 
28 #include "if_system_ability_manager.h"
29 #include "iremote_object.h"
30 #include "message_parcel.h"
31 #include "message_option.h"
32 #include "system_ability.h"
33 
34 #include "common_utils.h"
35 #include "constant_definition.h"
36 #include "geo_coding_mock_info.h"
37 #include "geo_convert_skeleton.h"
38 #include "geo_convert_service.h"
39 
40 namespace OHOS {
41 namespace Location {
42 class MockGeoConvertService : public GeoConvertService {
43 public:
MockGeoConvertService()44     MockGeoConvertService() {}
~MockGeoConvertService()45     ~MockGeoConvertService() {}
46     MOCK_METHOD(bool, Init, ());
47     MOCK_METHOD(bool, IsConnect, ());
48     MOCK_METHOD(bool, GetService, ());
49 };
50 } // namespace Location
51 } // namespace OHOS
52 #endif // FEATURE_GEOCODE_SUPPORT
53 #endif // MOCK_GEO_CONVERT_SERVICE_H