• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 PERIPHERAL_GNSS_TEST_H
17 #define PERIPHERAL_GNSS_TEST_H
18 
19 #include <gtest/gtest.h>
20 #include <v2_0/ignss_interface.h>
21 #include "gnss_measurement_callback_test.h"
22 #include "location_vendor_interface.h"
23 #include "iremote_object.h"
24 #include "if_system_ability_manager.h"
25 #include "iservice_registry.h"
26 #include "system_ability_definition.h"
27 #include "location_vendor_interface.h"
28 #include "location_vendor_lib.h"
29 
30 using OHOS::HDI::Location::Gnss::V2_0::IGnssCallback;
31 using OHOS::HDI::Location::Gnss::V2_0::IGnssInterface;
32 namespace OHOS {
33 namespace HDI {
34 namespace Location {
35 namespace Gnss {
36 namespace V2_0 {
37 
38 static const std::string SYSPARAM_GPS_SUPPORT = "const.location.gps.support";
39 class PeripheralGnssTest : public testing::Test {
40 public:
41     void SetUp();
42     void TearDown();
43     sptr<GnssInterfaceImpl> gnssInstance_;
44     sptr<IGnssMeasurementCallback> gnssMeasurementCallback_;
45     sptr<IGnssCallback> gnssCallback_;
46     bool isSupportGnss = false;
47 };
48 } // V2_0
49 } // Gnss
50 } // Location
51 } // HDI
52 } // OHOS
53 #endif // PERIPHERAL_GNSS_TEST_H