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

Commit 2108362a authored by Pawin Vongmasa's avatar Pawin Vongmasa Committed by android-build-merger
Browse files

Disable tests for secure audio decoders

am: b92f1d2e

Change-Id: I0170a99924c56200d428ea2e0bc78e97831aa51c
parents 6bd91399 b92f1d2e
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -209,7 +209,16 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
        framesReceived = 0;
        timestampUs = 0;
        timestampDevTest = false;
        if (disableTest) std::cerr << "[          ] Warning !  Test Disabled\n";
        isSecure = false;
        size_t suffixLen = strlen(".secure");
        if (strlen(gEnv->getComponent().c_str()) >= suffixLen) {
            isSecure =
                !strcmp(gEnv->getComponent().c_str() +
                            strlen(gEnv->getComponent().c_str()) - suffixLen,
                        ".secure");
        }
        if (isSecure) disableTest = true;
        if (disableTest) std::cout << "[   WARN   ] Test Disabled \n";
    }

    virtual void TearDown() override {
@@ -300,6 +309,7 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
    OMX_AUDIO_CODINGTYPE eEncoding;
    bool disableTest;
    bool eosFlag;
    bool isSecure;
    uint32_t framesReceived;
    uint64_t timestampUs;
    ::android::List<uint64_t> timestampUslist;