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

Commit fa6d6746 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Automerger Merge Worker
Browse files

Merge "Fix out-of-memory error." am: f4a9ee68 am: 3086bb11

parents 082b2ac6 3086bb11
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1129,8 +1129,12 @@ TYPED_TEST(FilterTest, FilterOutNonVendorTags) {
    TypeParam emptyTags;
    EXPECT_EQ(emptyTags, HidlUtils::filterOutNonVendorTags(emptyTags));

    TypeParam allVendorTags = {{"VX_GOOGLE_VR_42", "VX_GOOGLE_1E100"}};
    EXPECT_EQ(allVendorTags, HidlUtils::filterOutNonVendorTags(allVendorTags));
    // b/248421569, allocate two vendor tags at a time can run out of memory
    // TypeParam allVendorTags = {{"VX_GOOGLE_VR_42", "VX_GOOGLE_1E100"}};
    TypeParam allVendorTags1 = {{"VX_GOOGLE_VR_42"}};
    EXPECT_EQ(allVendorTags1, HidlUtils::filterOutNonVendorTags(allVendorTags1));
    TypeParam allVendorTags2 = {{"VX_GOOGLE_1E100"}};
    EXPECT_EQ(allVendorTags2, HidlUtils::filterOutNonVendorTags(allVendorTags2));

    TypeParam oneVendorTag = {{"", "VX_GOOGLE_VR", "random_string"}};
    TypeParam oneVendorTagOnly = HidlUtils::filterOutNonVendorTags(oneVendorTag);