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_CALLBACK_HOST_H
17 #define MOCK_GEO_CONVERT_CALLBACK_HOST_H
18 #ifdef FEATURE_GEOCODE_SUPPORT
19 
20 #include <gmock/gmock.h>
21 #include <gtest/gtest.h>
22 
23 #include "if_system_ability_manager.h"
24 #include "iremote_object.h"
25 #include "message_parcel.h"
26 #include "message_option.h"
27 #include "system_ability.h"
28 
29 #include "common_utils.h"
30 #include "geo_convert_callback_host.h"
31 
32 namespace OHOS {
33 namespace Location {
34 class MockGeoConvertCallbackHost : public GeoConvertCallbackHost {
35 public:
MockGeoConvertCallbackHost()36     MockGeoConvertCallbackHost() {}
~MockGeoConvertCallbackHost()37     ~MockGeoConvertCallbackHost() {}
38     MOCK_METHOD(void, OnResults, (std::list<std::shared_ptr<GeoAddress>> &results));
39     MOCK_METHOD(void, OnErrorReport, (const int errorCode));
40 };
41 } // namespace Location
42 } // namespace OHOS
43 #endif // FEATURE_GEOCODE_SUPPORT
44 #endif // MOCK_GEO_CONVERT_CALLBACK_HOST_H