mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 21:37:44 +00:00
Merge "Allow getPsdsExtension to return nullptr" into stage-aosp-sc-ts-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a5a3c1ece1
@@ -53,17 +53,16 @@ TEST_P(GnssHalTest, SetupTeardownCreateCleanup) {}
|
||||
|
||||
/*
|
||||
* TestPsdsExtension:
|
||||
* 1. Gets the PsdsExtension and verifies that it returns a non-null extension.
|
||||
* 1. Gets the PsdsExtension
|
||||
* 2. Injects empty PSDS data and verifies that it returns an error.
|
||||
*/
|
||||
TEST_P(GnssHalTest, TestPsdsExtension) {
|
||||
sp<IGnssPsds> iGnssPsds;
|
||||
auto status = aidl_gnss_hal_->getExtensionPsds(&iGnssPsds);
|
||||
ASSERT_TRUE(status.isOk());
|
||||
ASSERT_TRUE(iGnssPsds != nullptr);
|
||||
|
||||
status = iGnssPsds->injectPsdsData(PsdsType::LONG_TERM, std::vector<uint8_t>());
|
||||
ASSERT_FALSE(status.isOk());
|
||||
if (status.isOk() && iGnssPsds != nullptr) {
|
||||
status = iGnssPsds->injectPsdsData(PsdsType::LONG_TERM, std::vector<uint8_t>());
|
||||
ASSERT_FALSE(status.isOk());
|
||||
}
|
||||
}
|
||||
|
||||
void CheckSatellitePvt(const SatellitePvt& satellitePvt) {
|
||||
|
||||
Reference in New Issue
Block a user