Lines Matching refs:xml

273     std::string xml =  in TEST_F()  local
275 EXPECT_EQ(xml, in TEST_F()
305 EXPECT_TRUE(gHalManifestConverter(&vm2, xml)); in TEST_F()
311 std::string xml = gHalManifestConverter(vm, SerializeFlags::NO_TAGS.enableHals().enableVndk()); in TEST_F() local
312 EXPECT_EQ(xml, in TEST_F()
336 EXPECT_TRUE(gHalManifestConverter(&vm2, xml)); in TEST_F()
469 std::string xml = gVersionConverter(v); in TEST_F() local
470 EXPECT_EQ(xml, "<version>3.6</version>\n"); in TEST_F()
472 EXPECT_TRUE(gVersionConverter(&v2, xml)); in TEST_F()
487 std::string xml = gMatrixHalConverter(mh); in TEST_F() local
488 EXPECT_EQ(xml, in TEST_F()
504 EXPECT_TRUE(gMatrixHalConverter(&mh2, xml)); in TEST_F()
514 std::string xml; in TEST_F() local
516 xml = gKernelConfigTypedValueConverter(original); in TEST_F()
517 EXPECT_EQ(xml, expectXml); in TEST_F()
518 EXPECT_TRUE(gKernelConfigTypedValueConverter(&converted, xml)); in TEST_F()
523 const std::string &xml) { in TEST_F() argument
525 EXPECT_TRUE(gKernelConfigTypedValueConverter(&converted, xml)); in TEST_F()
606 std::string xml = gCompatibilityMatrixConverter(cm); in TEST_F() local
607 EXPECT_EQ(xml, in TEST_F()
657 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)); in TEST_F()
668 std::string xml = gCompatibilityMatrixConverter(cm); in TEST_F() local
669 EXPECT_EQ(xml, in TEST_F()
686 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)); in TEST_F()
915 std::string xml = in TEST_F() local
924 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)); in TEST_F()
929 std::string xml = in TEST_F() local
941 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)); in TEST_F()
1298 std::string xml = gHalManifestConverter( in TEST_F() local
1300 EXPECT_EQ(xml, in TEST_F()
1334 EXPECT_TRUE(gHalManifestConverter(&vm2, xml)); in TEST_F()
1341 std::string xml = gCompatibilityMatrixConverter(cm, SerializeFlags::XMLFILES_ONLY); in TEST_F() local
1342 EXPECT_EQ(xml, in TEST_F()
1350 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)); in TEST_F()
1355 std::string xml = in TEST_F() local
1363 EXPECT_FALSE(gCompatibilityMatrixConverter(&cm, xml)); in TEST_F()
1677 std::string xml = in TEST_F() local
1702 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1714 EXPECT_EQ(xml, gCompatibilityMatrixConverter(cm)); in TEST_F()
1718 std::string xml = in TEST_F() local
1732 EXPECT_FALSE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1743 std::string xml; in TEST_F() local
1746 xml = in TEST_F()
1767 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1771 xml = in TEST_F()
1792 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1797 xml = in TEST_F()
1818 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1821 xml = in TEST_F()
1846 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1850 xml = in TEST_F()
1875 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1880 xml = in TEST_F()
1905 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1909 xml = in TEST_F()
1947 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1951 xml = in TEST_F()
1989 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
1993 xml = in TEST_F()
2031 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2064 std::string xml; in TEST_F() local
2066 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"framework\"/>"; in TEST_F()
2067 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2071 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"framework\" level=\"legacy\"/>"; in TEST_F()
2072 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2076 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"framework\" level=\"1\"/>"; in TEST_F()
2077 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2084 std::string xml; in TEST_F() local
2086 xml = "<manifest " + kMetaVersionStr + " type=\"device\"/>"; in TEST_F()
2087 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2090 xml = "<manifest " + kMetaVersionStr + " type=\"device\" target-level=\"legacy\"/>"; in TEST_F()
2091 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2094 xml = "<manifest " + kMetaVersionStr + " type=\"device\" target-level=\"1\"/>"; in TEST_F()
2095 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2103 std::string xml; in TEST_F() local
2105 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"framework\" level=\"1\"/>"; in TEST_F()
2106 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2109 xml = in TEST_F()
2120 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2124 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2125 EXPECT_EQ(xml, in TEST_F()
2142 std::string xml; in TEST_F() local
2144 xml = in TEST_F()
2155 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2158 xml = in TEST_F()
2169 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2173 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2174 EXPECT_EQ(xml, in TEST_F()
2191 std::string xml; in TEST_F() local
2193 xml = in TEST_F()
2204 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2207 xml = in TEST_F()
2219 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2223 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2224 EXPECT_EQ(xml, in TEST_F()
2242 std::string xml; in TEST_F() local
2244 xml = in TEST_F()
2255 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2258 xml = in TEST_F()
2269 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2273 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2274 EXPECT_EQ(xml, in TEST_F()
2298 std::string xml; in TEST_F() local
2300 xml = in TEST_F()
2312 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2319 xml = in TEST_F()
2330 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2335 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2336 EXPECT_EQ(xml, in TEST_F()
2361 xml = in TEST_F()
2373 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2378 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2379 EXPECT_EQ(xml, in TEST_F()
2414 std::string xml; in TEST_F() local
2416 xml = in TEST_F()
2435 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2438 xml = in TEST_F()
2457 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2461 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::HALS_ONLY); in TEST_F()
2490 xml); in TEST_F()
2496 std::string xml; in TEST_F() local
2498 xml = in TEST_F()
2506 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm1, xml)) in TEST_F()
2509 xml = in TEST_F()
2517 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm2, xml)) in TEST_F()
2521 xml = gCompatibilityMatrixConverter(cm1, SerializeFlags::XMLFILES_ONLY); in TEST_F()
2522 EXPECT_EQ(xml, in TEST_F()
2540 std::string xml; in TEST_F() local
2542 xml = in TEST_F()
2550 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2552 EXPECT_EQ(xml, gCompatibilityMatrixConverter(cm)); in TEST_F()
2558 xml = in TEST_F()
2573 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2574 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2580 xml = in TEST_F()
2589 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2590 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2597 xml = in TEST_F()
2605 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2606 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2615 std::string xml; in TEST_F() local
2618 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"device\"/>\n"; in TEST_F()
2619 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2624 xml = "<manifest " + kMetaVersionStr + " type=\"framework\"/>\n"; in TEST_F()
2625 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2632 xml = in TEST_F()
2639 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2648 std::string xml = in TEST_F() local
2658 EXPECT_FALSE(gHalManifestConverter(&manifest, xml)); in TEST_F()
2664 std::string xml = in TEST_F() local
2677 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2689 std::string xml = "<manifest " + kMetaVersionStr + " type=\"device\"/>\n"; in TEST_F() local
2690 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2693 xml = in TEST_F()
2705 EXPECT_TRUE(gHalManifestConverter(&newManifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2708 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2713 std::string xml = in TEST_F() local
2721 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2724 xml = in TEST_F()
2736 EXPECT_TRUE(gHalManifestConverter(&newManifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2739 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2745 std::string xml = in TEST_F() local
2763 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2766 xml = in TEST_F()
2779 EXPECT_TRUE(gHalManifestConverter(&newManifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2814 std::string xml = in TEST_F() local
2827 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2830 xml = in TEST_F()
2843 EXPECT_TRUE(gHalManifestConverter(&newManifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2846 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2852 std::string xml = in TEST_F() local
2880 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2883 xml = in TEST_F()
2890 EXPECT_TRUE(gHalManifestConverter(&newManifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2912 std::string xml; in TEST_F() local
2915 xml = "<compatibility-matrix " + kMetaVersionStr + " type=\"device\"/>\n"; in TEST_F()
2916 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2919 xml = "<manifest " + kMetaVersionStr + " type=\"framework\"/>\n"; in TEST_F()
2920 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2927 std::string xml; in TEST_F() local
2930 xml = in TEST_F()
2937 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml)) in TEST_F()
2939 EXPECT_EQ(xml, gCompatibilityMatrixConverter(cm, SerializeFlags::SSDK_ONLY)); in TEST_F()
2943 xml = in TEST_F()
2950 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2951 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::SSDK_ONLY)); in TEST_F()
2958 xml = in TEST_F()
2966 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2972 xml = in TEST_F()
2978 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
3013 std::string xml; in TEST_F() local
3016 xml = in TEST_F()
3028 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3032 xml = in TEST_F()
3049 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml, &error)) << error; in TEST_F()
3064 xml = in TEST_F()
3076 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml, &error)) << error; in TEST_F()
3088 xml = in TEST_F()
3099 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml, &error)) << error; in TEST_F()
3111 std::string xml; in TEST_F() local
3113 xml = in TEST_F()
3130 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3145 std::string xml; in TEST_F() local
3148 xml = in TEST_F()
3167 EXPECT_TRUE(gCompatibilityMatrixConverter(&cm, xml, &error)) << error; in TEST_F()
3171 xml = in TEST_F()
3185 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3194 xml = in TEST_F()
3203 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3209 xml = in TEST_F()
3222 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3235 xml = in TEST_F()
3244 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3250 std::string xml; in TEST_F() local
3252 xml = in TEST_F()
3258 EXPECT_TRUE(gManifestHalConverter(&hal, xml, &error)) << error; in TEST_F()
3259 xml = in TEST_F()
3265 ASSERT_FALSE(gManifestHalConverter(&hal, xml, &error)); in TEST_F()
3267 xml = in TEST_F()
3273 ASSERT_FALSE(gManifestHalConverter(&hal, xml, &error)); in TEST_F()
3275 xml = in TEST_F()
3281 ASSERT_FALSE(gManifestHalConverter(&hal, xml, &error)); in TEST_F()
3283 xml = in TEST_F()
3289 ASSERT_FALSE(gManifestHalConverter(&hal, xml, &error)); in TEST_F()
3291 xml = in TEST_F()
3297 ASSERT_FALSE(gManifestHalConverter(&hal, xml, &error)); in TEST_F()
3306 std::string xml = in TEST_F() local
3319 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml, &error)) << error; in TEST_F()
3325 std::string xml = in TEST_F() local
3340 EXPECT_FALSE(gCompatibilityMatrixConverter(&matrix, xml, &error)); in TEST_F()
3351 std::string xml = in TEST_F() local
3368 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml)) in TEST_F()
3372 std::string xml = in TEST_F() local
3388 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)); in TEST_F()
3397 std::string xml = in TEST_F() local
3414 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)); in TEST_F()
3635 std::string xml = "<manifest version=\"2.0\" type=\"device\" />"; in TEST_F() local
3638 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3642 std::string xml = "<manifest version=\"10000.0\" type=\"device\" />"; in TEST_F() local
3645 EXPECT_FALSE(gHalManifestConverter(&manifest, xml, &error)) in TEST_F()
3650 std::string xml = "<manifest version=\"1.0\" type=\"device\" />"; in TEST_F() local
3653 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3658 std::string xml = "<compatibility-matrix version=\"2.0\" type=\"framework\" />"; in TEST_F() local
3661 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml, &error)) << error; in TEST_F()
3665 std::string xml = "<compatibility-matrix version=\"10000.0\" type=\"framework\" />"; in TEST_F() local
3668 EXPECT_FALSE(gCompatibilityMatrixConverter(&matrix, xml, &error)) in TEST_F()
3673 std::string xml = "<compatibility-matrix version=\"1.0\" type=\"framework\" />"; in TEST_F() local
3676 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml, &error)) << error; in TEST_F()
3681 std::string xml = in TEST_F() local
3694 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml, &error)) << error; in TEST_F()
3695 EXPECT_EQ(xml, gCompatibilityMatrixConverter(matrix, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
3797 std::string xml = in TEST_F() local
3817 EXPECT_TRUE(gCompatibilityMatrixConverter(&matrix, xml, &error)) << error; in TEST_F()
3818 EXPECT_EQ(xml, gCompatibilityMatrixConverter(matrix, SerializeFlags::HALS_ONLY)); in TEST_F()
3822 std::string xml = in TEST_F() local
3836 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3837 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_ONLY)); in TEST_F()
3882 std::string xml = in TEST_F() local
3892 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3901 std::string xml = in TEST_F() local
3911 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3919 std::string xml = in TEST_F() local
3927 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3935 std::string xml = "<kernel version=\"3.18.31\" target-level=\"1\"/>\n"; in TEST_F() local
3937 ASSERT_TRUE(gKernelInfoConverter(&ki, xml, &error)) << error; in TEST_F()
3939 EXPECT_EQ(xml, gKernelInfoConverter(ki)); in TEST_F()