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 #ifdef FEATURE_GNSS_SUPPORT
17 #include "gnss_interface_test.h"
18 
19 using namespace testing;
20 using namespace testing::ext;
21 
22 namespace OHOS {
23 namespace Location {
GnssInterfaceTest()24 GnssInterfaceTest::GnssInterfaceTest()
25 {
26 }
27 
~GnssInterfaceTest()28 GnssInterfaceTest::~GnssInterfaceTest()
29 {
30 }
31 
SetGnssConfigPara(const GnssConfigPara & para)32 int32_t GnssInterfaceTest::SetGnssConfigPara(const GnssConfigPara &para)
33 {
34     return HDF_SUCCESS;
35 }
36 
EnableGnss(const sptr<IGnssCallback> & callbackObj)37 int32_t GnssInterfaceTest::EnableGnss(const sptr<IGnssCallback> &callbackObj)
38 {
39     return HDF_SUCCESS;
40 }
41 
DisableGnss()42 int32_t GnssInterfaceTest::DisableGnss()
43 {
44     return HDF_SUCCESS;
45 }
46 
StartGnss(HDI::Location::Gnss::V2_0::GnssStartType type)47 int32_t GnssInterfaceTest::StartGnss(HDI::Location::Gnss::V2_0::GnssStartType type)
48 {
49     return HDF_SUCCESS;
50 }
51 
StopGnss(HDI::Location::Gnss::V2_0::GnssStartType type)52 int32_t GnssInterfaceTest::StopGnss(HDI::Location::Gnss::V2_0::GnssStartType type)
53 {
54     return HDF_SUCCESS;
55 }
56 
SetGnssReferenceInfo(const GnssRefInfo & refInfo)57 int32_t GnssInterfaceTest::SetGnssReferenceInfo(const GnssRefInfo &refInfo)
58 {
59     return HDF_SUCCESS;
60 }
61 
DeleteAuxiliaryData(unsigned short data)62 int32_t GnssInterfaceTest::DeleteAuxiliaryData(unsigned short data)
63 {
64     return HDF_SUCCESS;
65 }
66 
SetPredictGnssData(const std::string & data)67 int32_t GnssInterfaceTest::SetPredictGnssData(const std::string &data)
68 {
69     return HDF_SUCCESS;
70 }
71 
GetCachedGnssLocationsSize(int32_t & size)72 int32_t GnssInterfaceTest::GetCachedGnssLocationsSize(int32_t &size)
73 {
74     return HDF_SUCCESS;
75 }
76 
GetCachedGnssLocations()77 int32_t GnssInterfaceTest::GetCachedGnssLocations()
78 {
79     return HDF_SUCCESS;
80 }
81 
SendNiUserResponse(int32_t gnssNiNotificationId,HDI::Location::Gnss::V2_0::GnssNiResponseCmd userResponse)82 int32_t GnssInterfaceTest::SendNiUserResponse(int32_t gnssNiNotificationId,
83                                               HDI::Location::Gnss::V2_0::GnssNiResponseCmd userResponse)
84 {
85     return HDF_SUCCESS;
86 }
87 
SendNetworkInitiatedMsg(const std::string & msg,int32_t length)88 int32_t GnssInterfaceTest::SendNetworkInitiatedMsg(const std::string &msg, int32_t length)
89 {
90     return HDF_SUCCESS;
91 }
92 
EnableGnssMeasurement(const sptr<HDI::Location::Gnss::V2_0::IGnssMeasurementCallback> & callbackObj)93 int32_t GnssInterfaceTest::EnableGnssMeasurement(
94     const sptr<HDI::Location::Gnss::V2_0::IGnssMeasurementCallback> &callbackObj)
95 {
96     return HDF_SUCCESS;
97 }
98 
DisableGnssMeasurement()99 int32_t GnssInterfaceTest::DisableGnssMeasurement()
100 {
101     return HDF_SUCCESS;
102 }
103 }  // namespace Location
104 }  // namespace OHOS
105 #endif  // FEATURE_GNSS_SUPPORT
106