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

Commit 68dbd4ea authored by Emilian Peev's avatar Emilian Peev Committed by Zhijun He
Browse files

Camera: Update service test for multiple vendor providers

Appending to a source with valid vendor id from a metadata without
vendor id should be supported.

Bug: 37198452
Test: CameraProviderManagerTest.MultipleVendorTagTest
Change-Id: Ic0b160216386fcfe1aa57b7e4a363b405459b3d0
parent c24deb62
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -352,12 +352,12 @@ TEST(CameraProviderManagerTest, MultipleVendorTagTest) {
    metadataCopy.update(ANDROID_CONTROL_SCENE_MODE, &sceneMode, 1);
    // However appending from same vendor tag provider should be fine
    ASSERT_EQ(OK, metadata.append(secondMetadata));
    // Append from a metadata without vendor tag provider should not be supported
    // Append from a metadata without vendor tag provider should be supported
    CameraMetadata regularMetadata(10, 20);
    uint8_t controlMode = ANDROID_CONTROL_MODE_AUTO;
    regularMetadata.update(ANDROID_CONTROL_MODE, &controlMode, 1);
    ASSERT_NE(OK, secondMetadata.append(regularMetadata));
    ASSERT_EQ(1u, secondMetadata.entryCount());
    ASSERT_EQ(OK, secondMetadata.append(regularMetadata));
    ASSERT_EQ(2u, secondMetadata.entryCount());
    ASSERT_EQ(2u, metadata.entryCount());

    // Dump