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

Commit 602a3419 authored by Umang Saini's avatar Umang Saini Committed by Sungtak Lee
Browse files

codec2: VTS fix Master test for multiple IComponent services

List and Create components for all known services.
Test: VtsHidlC2V1_0TargetMasterTest -I default
Test: VtsHidlC2V1_0TargetMasterTest -I software

Bug: 127693385
Change-Id: I25068c746ac95495d45e3f26602d07386413798a
parent bc6cddd5
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ TEST_F(Codec2MasterHalTest, ListComponents) {
    C2String name = mClient->getName();
    EXPECT_NE(name.empty(), true) << "Invalid Codec2Client Name";

    // Get List of components from HIDL Codec2Client instance
    // Get List of components from all known services
    const std::vector<C2Component::Traits> listTraits =
        mClient->ListComponents();

@@ -78,8 +78,9 @@ TEST_F(Codec2MasterHalTest, ListComponents) {
            listener.reset(new CodecListener());
            ASSERT_NE(listener, nullptr);

            mClient->createComponent(listTraits[i].name.c_str(), listener,
                                     &component);
            // Create component from all known services
            component = mClient->CreateComponentByName(
                listTraits[i].name.c_str(), listener, &mClient);
            ASSERT_NE(component, nullptr) << "Create component failed for "
                                          << listTraits[i].name.c_str();
        }