• Home
  • Raw
  • Download

Lines Matching refs:error

67         std::string error;  in add()  local
68 bool success = cm.addKernel(std::move(kernel), &error); in add()
69 EXPECT_EQ(success, error == "") << "success: " << success << ", error: " << error; in add()
370 std::string error; in TEST_F() local
378 "</manifest>", &error)) << error; in TEST_F()
386 "</manifest>", &error)); in TEST_F()
387 EXPECT_THAT(error, HasSubstr("Native HAL 'foo' should not have <transport> defined")); in TEST_F()
829 std::string error; in TEST_F() local
846 EXPECT_TRUE(ki.checkCompatibility(cm, &error)) << error; in TEST_F()
853 EXPECT_TRUE(ki.checkCompatibility(cm, &error)) << error; in TEST_F()
855 EXPECT_FALSE(ki.checkCompatibility(cm, &error)) in TEST_F()
857 EXPECT_IN("kernelSepolicyVersion = 30 but required >= 40", error); in TEST_F()
904 EXPECT_FALSE(badAvb.checkCompatibility(cm, &error, CheckFlags::ENABLE_ALL_CHECKS)); in TEST_F()
905 EXPECT_STREQ(error.c_str(), "Vbmeta version 1.0 does not match framework matrix 2.1"); in TEST_F()
909 EXPECT_FALSE(badAvb.checkCompatibility(cm, &error, CheckFlags::ENABLE_ALL_CHECKS)); in TEST_F()
913 EXPECT_TRUE(badAvb.checkCompatibility(cm, &error, CheckFlags::ENABLE_ALL_CHECKS)); in TEST_F()
917 EXPECT_TRUE(badAvb.checkCompatibility(cm, &error, CheckFlags::ENABLE_ALL_CHECKS)); in TEST_F()
950 std::string error; in TEST_F() local
951 EXPECT_FALSE(ki.checkCompatibility(cm, &error, CheckFlags::ENABLE_ALL_CHECKS)); in TEST_F()
952 EXPECT_STREQ(error.c_str(), "AVB version 2.1 does not match framework matrix 1.0"); in TEST_F()
953 EXPECT_TRUE(ki.checkCompatibility(cm, &error, CheckFlags::DISABLE_AVB_CHECK)) << error; in TEST_F()
959 std::string error; in TEST_F() local
986 EXPECT_TRUE(fromXml(&matrix, matrixXml, &error)) << error; in TEST_F()
1016 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1017 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1038 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1039 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1069 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1070 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1101 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1102 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1140 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1141 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1173 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1174 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1260 std::string error; in TEST_F() local
1263 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1280 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1284 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1296 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1360 std::string error; in TEST_F() local
1369 EXPECT_FALSE(fromXml(&cm, xml, &error)); in TEST_F()
1371 "compatibility matrix version 1.0", error); in TEST_F()
1508 ASSERT_EQ(OK, pair.second) << pair.first.error(); in TEST_F()
1527 ASSERT_EQ(OK, pair.second) << pair.first.error(); in TEST_F()
1554 ASSERT_EQ(OK, pair.second) << pair.first.error(); in TEST_F()
1576 std::string error; in TEST_F() local
1585 EXPECT_TRUE(fromXml(&matrix, matrixXml, &error)) << error; in TEST_F()
1597 EXPECT_FALSE(fromXml(&matrix, matrixXml, &error)); in TEST_F()
1598 EXPECT_THAT(error, HasSubstr( in TEST_F()
1609 EXPECT_FALSE(fromXml(&matrix, matrixXml, &error)); in TEST_F()
1610 EXPECT_THAT(error, HasSubstr( in TEST_F()
1622 EXPECT_FALSE(fromXml(&matrix, matrixXml, &error)); in TEST_F()
1623 EXPECT_THAT(error, HasSubstr( in TEST_F()
1633 std::string error; in TEST_F() local
1643 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
1655 EXPECT_FALSE(fromXml(&manifest, manifestXml, &error)); in TEST_F()
1656 EXPECT_THAT(error, HasSubstr( in TEST_F()
1667 EXPECT_FALSE(fromXml(&manifest, manifestXml, &error)); in TEST_F()
1668 EXPECT_THAT(error, HasSubstr( in TEST_F()
1675 std::string error; in TEST_F() local
1701 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1716 std::string error; in TEST_F() local
1731 EXPECT_FALSE(fromXml(&cm, xml, &error)) in TEST_F()
1735 "for backwards compatibility.", error); in TEST_F()
1740 std::string error; in TEST_F() local
1765 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1766 EXPECT_TRUE(runtime.checkCompatibility(cm, &error)) << error; in TEST_F()
1789 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1790 EXPECT_FALSE(runtime.checkCompatibility(cm, &error)) in TEST_F()
1814 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1815 EXPECT_TRUE(runtime.checkCompatibility(cm, &error)) << error; in TEST_F()
1841 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1842 EXPECT_TRUE(runtime.checkCompatibility(cm, &error)); in TEST_F()
1869 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1870 EXPECT_FALSE(runtime.checkCompatibility(cm, &error)) in TEST_F()
1898 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1899 EXPECT_TRUE(runtime.checkCompatibility(cm, &error)) << error; in TEST_F()
1939 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1940 EXPECT_TRUE(runtime.checkCompatibility(cm, &error)) << error; in TEST_F()
1980 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
1981 EXPECT_FALSE(runtime.checkCompatibility(cm, &error)) << "all fragments should be used."; in TEST_F()
2021 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2022 EXPECT_FALSE(runtime.checkCompatibility(cm, &error)) << "all fragments should be used"; in TEST_F()
2031 ASSERT_EQ(OK, pair.second) << pair.first.error(); in TEST_P()
2052 std::string error; in TEST_F() local
2057 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2061 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2065 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2070 std::string error; in TEST_F() local
2075 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2079 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2083 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2090 std::string error; in TEST_F() local
2094 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2107 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2109 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2127 std::string error; in TEST_F() local
2141 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2154 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2156 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2174 std::string error; in TEST_F() local
2188 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2202 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2204 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2223 std::string error; in TEST_F() local
2237 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2250 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2252 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2277 std::string error; in TEST_F() local
2292 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2309 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2311 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2351 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2353 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2390 std::string error; in TEST_F() local
2412 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2433 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2435 EXPECT_TRUE(addAllHalsAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2470 std::string error; in TEST_F() local
2481 EXPECT_TRUE(fromXml(&cm1, xml, &error)) << error; in TEST_F()
2491 EXPECT_TRUE(fromXml(&cm2, xml, &error)) << error; in TEST_F()
2493 EXPECT_TRUE(addAllXmlFilesAsOptional(&cm1, &cm2, &error)) << error; in TEST_F()
2512 std::string error; in TEST_F() local
2523 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2545 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2547 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2561 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2563 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2564 EXPECT_IN("Vndk version P is not supported.", error); in TEST_F()
2577 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2579 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2580 EXPECT_IN("Vndk libs incompatible for version P.", error); in TEST_F()
2581 EXPECT_IN("libjpeg.so", error); in TEST_F()
2588 std::string error; in TEST_F() local
2591 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2596 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2598 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2610 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2612 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2617 std::string error; in TEST_F() local
2629 EXPECT_FALSE(fromXml(&manifest, xml, &error)); in TEST_F()
2630 EXPECT_EQ("Duplicated manifest.vendor-ndk.version 27", error); in TEST_F()
2634 std::string error; in TEST_F() local
2649 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2660 std::string error; in TEST_F() local
2663 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2678 EXPECT_TRUE(fromXml(&newManifest, xml, &error)) << error; in TEST_F()
2685 std::string error; in TEST_F() local
2695 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2710 EXPECT_TRUE(fromXml(&newManifest, xml, &error)) << error; in TEST_F()
2718 std::string error; in TEST_F() local
2738 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2754 EXPECT_TRUE(fromXml(&newManifest, xml, &error)) << error; in TEST_F()
2788 std::string error; in TEST_F() local
2803 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2820 EXPECT_TRUE(fromXml(&newManifest, xml, &error)) << error; in TEST_F()
2828 std::string error; in TEST_F() local
2858 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2869 EXPECT_TRUE(fromXml(&newManifest, xml, &error)) << error; in TEST_F()
2892 std::string error; in TEST_F() local
2895 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2898 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2900 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2904 std::string error; in TEST_F() local
2917 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
2929 std::string error; in TEST_F() local
2938 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
2950 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2953 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2966 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2967 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2978 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
2979 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2980 EXPECT_TRUE(error.find("System SDK") != std::string::npos) << error; in TEST_F()
2985 std::string error; in TEST_F() local
2987 EXPECT_FALSE(fromXml(&e, "<manifest/>", &error)); in TEST_F()
2988 EXPECT_NE("Not a valid XML", error); in TEST_F()
2990 std::string prevError = error; in TEST_F()
2991 EXPECT_FALSE(fromXml(&e, "", &error)); in TEST_F()
2992 EXPECT_EQ("Not a valid XML", error); in TEST_F()
2996 std::string error; in TEST_F() local
2998 EXPECT_FALSE(fromXml(&e, "<compatibility-matrix/>", &error)); in TEST_F()
2999 EXPECT_NE("Not a valid XML", error); in TEST_F()
3001 std::string prevError = error; in TEST_F()
3002 EXPECT_FALSE(fromXml(&e, "", &error)); in TEST_F()
3003 EXPECT_EQ("Not a valid XML", error); in TEST_F()
3007 std::string error; in TEST_F() local
3023 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3044 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
3045 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3046 EXPECT_IN("Manifest level = 103", error) in TEST_F()
3047 EXPECT_IN("Matrix level = 100", error) in TEST_F()
3054 error); in TEST_F()
3071 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
3072 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3077 error); in TEST_F()
3094 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
3095 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3100 error); in TEST_F()
3105 std::string error; in TEST_F() local
3125 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3139 std::string error; in TEST_F() local
3162 EXPECT_TRUE(fromXml(&cm, xml, &error)) << error; in TEST_F()
3180 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3181 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
3198 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3199 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
3217 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3218 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3225 error); in TEST_F()
3239 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3244 std::string error; in TEST_F() local
3253 EXPECT_TRUE(fromXml(&hal, xml, &error)) << error; in TEST_F()
3260 ASSERT_FALSE(fromXml(&hal, xml, &error)); in TEST_F()
3261 EXPECT_IN("Could not parse text \"1.1::IFoo/custom\" in element <fqname>", error); in TEST_F()
3268 ASSERT_FALSE(fromXml(&hal, xml, &error)); in TEST_F()
3269 EXPECT_IN("Should not specify package", error); in TEST_F()
3276 ASSERT_FALSE(fromXml(&hal, xml, &error)); in TEST_F()
3277 EXPECT_IN("Should specify version", error); in TEST_F()
3284 ASSERT_FALSE(fromXml(&hal, xml, &error)); in TEST_F()
3285 EXPECT_IN("Should specify instance", error); in TEST_F()
3292 ASSERT_FALSE(fromXml(&hal, xml, &error)); in TEST_F()
3293 EXPECT_IN("Cannot create FqInstance", error); in TEST_F()
3294 EXPECT_IN("n07 4 v4l1d 1n73rf4c3", error); in TEST_F()
3299 std::string error; in TEST_F() local
3314 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3319 std::string error; in TEST_F() local
3335 EXPECT_FALSE(fromXml(&matrix, xml, &error)); in TEST_F()
3336 EXPECT_IN("Invalid regular expression 'e{1,2,3}'", error); in TEST_F()
3337 EXPECT_IN("Invalid regular expression '*'", error); in TEST_F()
3338 EXPECT_IN("Invalid regular expression '+'", error); in TEST_F()
3339 EXPECT_IN("Duplicated regex-instance '[0-9]+'", error); in TEST_F()
3344 std::string error; in TEST_F() local
3363 EXPECT_TRUE(fromXml(&matrix, matrixXml, &error)) << error; in TEST_F()
3383 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3409 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3493 std::string error; in TEST_F() local
3495 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3497 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3499 ASSERT_TRUE(manifest1.addAll(&manifest2, &error)) << error; in TEST_F()
3526 std::string error; in TEST_F() local
3528 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3530 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3532 ASSERT_TRUE(manifest1.addAll(&manifest2, &error)) << error; in TEST_F()
3555 std::string error; in TEST_F() local
3558 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3561 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3563 ASSERT_FALSE(manifest1.addAll(&manifest2, &error)); in TEST_F()
3565 EXPECT_IN("android.hardware.foo", error); in TEST_F()
3566 EXPECT_IN("1.0 (from 1.xml)", error); in TEST_F()
3567 EXPECT_IN("1.1 (from 2.xml)", error); in TEST_F()
3574 std::string error; in TEST_F() local
3576 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3578 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3580 ASSERT_FALSE(manifest1.addAll(&manifest2, &error)); in TEST_F()
3581 EXPECT_IN("Conflicting target-level", error); in TEST_F()
3598 std::string error; in TEST_F() local
3600 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3602 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3604 ASSERT_FALSE(manifest1.addAll(&manifest2, &error)); in TEST_F()
3605 EXPECT_IN("Conflicting sepolicy version", error); in TEST_F()
3618 std::string error; in TEST_F() local
3620 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
3622 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
3624 ASSERT_FALSE(manifest1.addAll(&manifest2, &error)); in TEST_F()
3625 EXPECT_IN("Conflicting kernel", error); in TEST_F()
3630 std::string error; in TEST_F() local
3632 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3637 std::string error; in TEST_F() local
3639 EXPECT_FALSE(fromXml(&manifest, xml, &error)) in TEST_F()
3645 std::string error; in TEST_F() local
3647 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3653 std::string error; in TEST_F() local
3655 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3660 std::string error; in TEST_F() local
3662 EXPECT_FALSE(fromXml(&matrix, xml, &error)) in TEST_F()
3668 std::string error; in TEST_F() local
3670 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3686 std::string error; in TEST_F() local
3688 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3704 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3706 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3728 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3730 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3755 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3757 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3759 EXPECT_IN("required: (IFoo/default (@1) AND IFoo/test.* (@1))", error); in TEST_F()
3763 error); in TEST_F()
3778 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3780 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3782 EXPECT_IN("required: (IFoo/default (@1) AND IFoo/test.* (@1))", error); in TEST_F()
3786 error); in TEST_F()
3809 std::string error; in TEST_F() local
3811 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3828 std::string error; in TEST_F() local
3830 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
3865 std::string error; in TEST_F() local
3869 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3870 EXPECT_TRUE(fromXml(&matrix, matrixXml, &error)) << error; in TEST_F()
3888 std::string error; in TEST_F() local
3890 EXPECT_TRUE(fromXml(&matrix, xml, &error)) << error; in TEST_F()
3919 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3921 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3948 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3950 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3980 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
3982 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3984 EXPECT_IN("required: (IFoo/default (@4-100) AND IFoo/test.* (@4-100))", error); in TEST_F()
3988 error); in TEST_F()
4005 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
4007 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
4009 EXPECT_IN("required: (IFoo/default (@4-100) AND IFoo/test.* (@4-100))", error); in TEST_F()
4013 error); in TEST_F()
4030 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
4032 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
4034 EXPECT_IN("required: (IFoo/default (@4-100) AND IFoo/test.* (@4-100))", error); in TEST_F()
4038 error); in TEST_F()
4056 EXPECT_TRUE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
4058 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
4060 EXPECT_IN("required: (IFoo/default (@4-100) AND IFoo/test.* (@4-100))", error); in TEST_F()
4064 error); in TEST_F()
4069 std::string error; in TEST_F() local
4078 EXPECT_FALSE(fromXml(&manifest, manifestXml, &error)) << error; in TEST_F()
4079 EXPECT_IN("Should not specify version in <fqname> for AIDL HAL: \"@1.0::IFoo/default\"", error); in TEST_F()
4091 std::string error; in TEST_F() local
4093 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
4110 std::string error; in TEST_F() local
4112 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
4127 std::string error; in TEST_F() local
4128 EXPECT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
4148 std::string error; in TEST_F() local
4151 ASSERT_TRUE(fromXml(&manifest1, xml1, &error)) << error; in TEST_F()
4154 ASSERT_TRUE(fromXml(&manifest2, xml2, &error)) << error; in TEST_F()
4156 ASSERT_TRUE(manifest1.addAll(&manifest2, &error)) << error; in TEST_F()
4160 std::string error; in TEST_F() local
4163 ASSERT_TRUE(fromXml(&ki, xml, &error)) << error; in TEST_F()
4185 std::string error; in TEST_F() local
4188 ASSERT_TRUE(fromXml(&manifest1, head + xml1 + tail, &error)) << error; in TEST_F()
4189 ASSERT_TRUE(fromXml(&manifest2, head + xml2 + tail, &error)) << error; in TEST_F()
4190 ASSERT_TRUE(manifest1.addAll(&manifest2, &error)) << error; in TEST_F()
4217 std::string error; in TEST_F() local
4219 ASSERT_TRUE(fromXml(&manifest, xml, &error)) << error; in TEST_F()
4282 std::string error; in TEST_F() local
4283 ASSERT_FALSE(fromXml(&manifest, xml, &error)) << "Should not be valid:\n" << xml; in TEST_F()
4284 EXPECT_THAT(error, HasSubstr("Interface 'MyFoo' should have the format I[a-zA-Z0-9_]*")); in TEST_F()
4301 std::string error; in TEST_F() local
4302 ASSERT_FALSE(fromXml(&manifest, xml, &error)) << "Should not be valid:\n" << xml; in TEST_F()
4303 EXPECT_THAT(error, HasSubstr("not_a_valid_package!")); in TEST_F()
4320 std::string error; in TEST_F() local
4321 ASSERT_FALSE(fromXml(&matrix, xml, &error)) << "Should not be valid:\n" << xml; in TEST_F()
4322 EXPECT_THAT(error, HasSubstr("Interface 'MyFoo' should have the format I[a-zA-Z0-9_]*")); in TEST_F()
4339 std::string error; in TEST_F() local
4340 ASSERT_FALSE(fromXml(&matrix, xml, &error)) << "Should not be valid:\n" << xml; in TEST_F()
4341 EXPECT_THAT(error, HasSubstr("not_a_valid_package!")); in TEST_F()
4355 std::string* error) { in combine()
4356 return CompatibilityMatrix::combine(deviceLevel, matrices, error); in combine()
4360 std::string error; member
4370 &error)) in TEST_F()
4371 << error; in TEST_F()
4377 &error)) in TEST_F()
4378 << error; in TEST_F()
4380 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4382 EXPECT_IN("Kernel version mismatch", error); in TEST_F()
4413 &error)) in TEST_F()
4414 << error; in TEST_F()
4419 &error)) in TEST_F()
4420 << error; in TEST_F()
4422 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4424 EXPECT_EQ("", error); in TEST_F()
4439 &error)) in TEST_F()
4440 << error; in TEST_F()
4448 &error)) in TEST_F()
4449 << error; in TEST_F()
4451 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4453 EXPECT_IN("<sepolicy> is already defined", error); in TEST_F()
4465 &error)) in TEST_F()
4466 << error; in TEST_F()
4474 &error)) in TEST_F()
4475 << error; in TEST_F()
4477 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4479 EXPECT_IN("<avb><vbmeta-version> is already defined", error); in TEST_F()
4505 std::string error; in TEST_F() local
4507 ASSERT_TRUE(fromXml(&matrices[0], head1 + aidl + tail, &error)) in TEST_F()
4508 << error; in TEST_F()
4509 ASSERT_TRUE(fromXml(&matrices[1], head1 + hidl + tail, &error)) in TEST_F()
4510 << error; in TEST_F()
4512 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4513 ASSERT_NE(nullptr, combined) << error; in TEST_F()
4520 ASSERT_TRUE(fromXml(&matrices[0], head1 + aidl + tail, &error)) in TEST_F()
4521 << error; in TEST_F()
4522 ASSERT_TRUE(fromXml(&matrices[1], head2 + hidl + tail, &error)) in TEST_F()
4523 << error; in TEST_F()
4525 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4526 ASSERT_NE(nullptr, combined) << error; in TEST_F()
4533 ASSERT_TRUE(fromXml(&matrices[0], head2 + aidl + tail, &error)) in TEST_F()
4534 << error; in TEST_F()
4535 ASSERT_TRUE(fromXml(&matrices[1], head1 + hidl + tail, &error)) in TEST_F()
4536 << error; in TEST_F()
4538 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4539 ASSERT_NE(nullptr, combined) << error; in TEST_F()
4555 std::string* error) { in combine()
4556 return CompatibilityMatrix::combineDeviceMatrices(matrices, error); in combine()
4560 std::string error; member
4584 ASSERT_TRUE(fromXml(&matrices[0], head + halFoo + tail, &error)) in TEST_F()
4585 << error; in TEST_F()
4586 ASSERT_TRUE(fromXml(&matrices[1], head + halBar + tail, &error)) in TEST_F()
4587 << error; in TEST_F()
4589 auto combined = combine(&matrices, &error); in TEST_F()
4590 ASSERT_NE(nullptr, combined) << error; in TEST_F()
4591 EXPECT_EQ("", error); in TEST_F()
4610 ASSERT_TRUE(fromXml(&matrices[0], vendorNdkP, &error)) << error; in TEST_F()
4611 ASSERT_TRUE(fromXml(&matrices[1], vendorNdkQ, &error)) << error; in TEST_F()
4613 auto combined = combine(&matrices, &error); in TEST_F()
4615 EXPECT_IN("<vendor-ndk> is already defined", error); in TEST_F()
4638 ASSERT_TRUE(fromXml(&matrices[0], head + aidl + tail, &error)) in TEST_F()
4639 << error; in TEST_F()
4640 ASSERT_TRUE(fromXml(&matrices[1], head + hidl + tail, &error)) in TEST_F()
4641 << error; in TEST_F()
4643 auto combined = combine(&matrices, &error); in TEST_F()
4644 ASSERT_NE(nullptr, combined) << error; in TEST_F()