Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb76f1a5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Allow getPsdsExtension to return nullptr" into stage-aosp-sc-ts-dev am:...

Merge "Allow getPsdsExtension to return nullptr" into stage-aosp-sc-ts-dev am: a5a3c1ec am: f95af27d am: fa9800df

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15695413

Change-Id: If11bb787c127f7c322056395982bc9a037853351
parents 8c8652c9 fa9800df
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -53,18 +53,17 @@ 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);

    if (status.isOk() && iGnssPsds != nullptr) {
        status = iGnssPsds->injectPsdsData(PsdsType::LONG_TERM, std::vector<uint8_t>());
        ASSERT_FALSE(status.isOk());
    }
}

void CheckSatellitePvt(const SatellitePvt& satellitePvt) {
    const double kMaxOrbitRadiusMeters = 43000000.0;