Searched refs:miscTypes (Results 1 – 3 of 3) sorted by relevance
/aosp12/system/tools/xsdc/tests/ |
H A D | tests.cpp | 43 MiscTypes miscTypes = *type.getFirstMiscTypes(); in TEST_F() local 90 EXPECT_EQ(miscTypes.get_double(), 1234.57); in TEST_F() 91 EXPECT_EQ(miscTypes.getAnyURI(), "https://www.google.com"); in TEST_F() 92 EXPECT_EQ(miscTypes.getBase64Binary(), "Z29vZ2xl"); in TEST_F() 93 EXPECT_TRUE(miscTypes.getBoolean()); in TEST_F() 94 EXPECT_EQ(miscTypes.getHexBinary(), "016a75cb56d7e7"); in TEST_F() 95 EXPECT_EQ(miscTypes.getQName(), "abcd"); in TEST_F() 96 EXPECT_EQ(miscTypes.getIDREF(), "abcd"); in TEST_F() 97 EXPECT_EQ(miscTypes.getIDREFS()[0], "abcd"); in TEST_F() 98 EXPECT_EQ(miscTypes.getIDREFS()[1], "abcd"); in TEST_F() [all …]
|
/aosp12/system/tools/xsdc/tests/src/com/android/xsdc/tests/ |
H A D | XmlParserTest.java | 177 predefined.types.MiscTypes miscTypes = type.getMiscTypes(); in testPredefinedTypes() local 179 assertThat(miscTypes.get_double(), is(1234.57)); in testPredefinedTypes() 180 assertThat(miscTypes.getAnyURI(), is("https://www.google.com")); in testPredefinedTypes() 181 assertThat(miscTypes.getBase64Binary(), is(Base64.getDecoder().decode("Z29vZ2xl"))); in testPredefinedTypes() 182 assertThat(miscTypes.get_boolean(), is(true)); in testPredefinedTypes() 183 assertThat(miscTypes.getHexBinary(), in testPredefinedTypes() 185 assertThat(miscTypes.getQName(), is("abcd")); in testPredefinedTypes() 186 assertThat(miscTypes.getIDREF(), is("abcd")); in testPredefinedTypes() 187 assertThat(miscTypes.getIDREFS(), is(Arrays.asList("abcd", "abcd"))); in testPredefinedTypes() 188 assertThat(miscTypes.getAnyType(), is("abcd")); in testPredefinedTypes()
|
/aosp12/system/tools/xsdc/tests/resources/predefined_types/ |
H A D | predefined_types.xsd | 48 <xs:complexType name="miscTypes"> 107 <xs:element name="miscTypes" type="miscTypes"/>
|