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

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

Disable tests for secure audio decoders am: b92f1d2e

am: 2108362a

Change-Id: Iac2d962dd3b6926888618c1489addf223e599e10
parents b32043a6 2108362a
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -219,7 +219,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 {
@@ -311,6 +320,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;