Lines Matching refs:Parse
87 AidlDefinedType* Parse(const string& path, const string& contents, AidlTypenames& typenames_, in Parse() function in android::aidl::AidlTest
142 EXPECT_NE(nullptr, Parse("IFoo.aidl", "interface IFoo { }", typenames_, GetLanguage())); in TEST_P()
146 EXPECT_NE(nullptr, Parse("IFoo.aidl", "interface IFoo { } // foo", typenames_, GetLanguage())); in TEST_P()
154 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", file_contents, typenames_, GetLanguage())); in TEST_P()
163 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", file_contents, typenames_, GetLanguage())); in TEST_P()
172 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", file_contents, typenames_, GetLanguage())); in TEST_P()
181 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", file_contents, typenames_, GetLanguage())); in TEST_P()
196 EXPECT_EQ(nullptr, Parse(path, contents, typenames_, GetLanguage())); in TEST_P()
202 EXPECT_NE(nullptr, Parse("a/IBar.aidl", interface_list, typenames_, GetLanguage())); in TEST_P()
211 EXPECT_EQ(nullptr, Parse("a/IBaz.aidl", interface_ibinder, typenames_, GetLanguage())); in TEST_P()
220 EXPECT_EQ(nullptr, Parse("a/IBar.aidl", oneway_interface, typenames_, GetLanguage())); in TEST_P()
229 EXPECT_EQ(nullptr, Parse("a/IBar.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
238 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
247 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
255 EXPECT_NE(nullptr, Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
264 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage())); in TEST_P()
272 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", method, typenames_, GetLanguage())); in TEST_P()
282 EXPECT_EQ(nullptr, Parse("Foo.aidl", method, typenames_, GetLanguage())); in TEST_P()
288 EXPECT_NE(nullptr, Parse("Foo.aidl", "parcelable Foo {}", typenames_, GetLanguage())); in TEST_P()
296 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage())); in TEST_P()
304 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage(), &error)); in TEST_P()
313 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage(), &error)); in TEST_P()
322 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage(), &error)); in TEST_P()
331 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", method, typenames_, GetLanguage(), &error)); in TEST_P()
338 Parse("a/IFoo.aidl", "package a; interface IFoo { String f(); }", typenames_, GetLanguage()); in TEST_P()
347 auto parse_result = Parse("a/IFoo.aidl", "package a; interface IFoo { @nullable String f(); }", in TEST_P()
358 Parse("a/IFoo.aidl", "package a; interface IFoo { String f(); }", typenames_, GetLanguage()); in TEST_P()
367 auto parse_result = Parse("a/IFoo.aidl", "package a; interface IFoo { @utf8InCpp String f(); }", in TEST_P()
384 ASSERT_EQ(nullptr, Parse("IFoo.aidl", "@VintfStability interface IFoo {}", typenames_, in TEST_P()
396 ASSERT_EQ(nullptr, Parse("IFoo.aidl", "@VintfStability interface IFoo {}", typenames_, in TEST_P()
408 ASSERT_EQ(nullptr, Parse("IFoo.aidl", "@VintfStability interface IFoo {}", typenames_, in TEST_P()
416 auto parse_result = Parse("IFoo.aidl", "@VintfStability interface IFoo {}", typenames_, in TEST_P()
585 auto parse_result = Parse("IFoo.aidl", R"(@Descriptor(value="IBar") interface IFoo{})", in TEST_P()
596 EXPECT_NE(nullptr, Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
601 EXPECT_NE(nullptr, Parse("a/IBar.aidl", oneway_interface, typenames_, GetLanguage())); in TEST_P()
607 EXPECT_NE(nullptr, Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage())); in TEST_P()
613 const AidlDefinedType* defined = Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage()); in TEST_P()
643 auto parse_result = Parse("a/IFoo.aidl", foo_interface, typenames_, GetLanguage()); in TEST_P()
668 auto parse_result = Parse(input_path, input, typenames_, GetLanguage()); in TEST_P()
699 auto parse_result = Parse("p/IFoo.aidl", "package p; import one.IBar; interface IFoo {}", in TEST_P()
721 auto parse_result = Parse("p/IFoo.aidl", "package p; import one.IBar; interface IFoo {}", in TEST_P()
818 auto parsed = Parse("IFoo.aidl", "// @deprecated\ninterface IFoo {}", typenames_, GetLanguage()); in TEST_P()
909 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
919 auto parse_result = Parse("p/IFoo.aidl", "package p; interface IFoo { void f(in Inner c); }", in TEST_P()
973 Parse("p/IFoo.aidl", in TEST_P()
985 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
1002 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
1051 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
1069 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", R"(package p;)", typenames_, GetLanguage(), &error)); in TEST_P()
1079 EXPECT_EQ(nullptr, Parse("p/Foo.aidl", R"(package p; parcelable Foo { uint64_t[] a = { , }; })", in TEST_P()
1090 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
1108 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", R"(package p; parcelable A.; )", typenames_, in TEST_P()
1121 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", R"(package p.; parcelable A; )", typenames_, in TEST_P()
1129 auto parse_result = Parse("p/IFoo.aidl", in TEST_P()
1148 auto parse_result = Parse("p/IFoo.aidl", in TEST_P()
1174 auto parse_result = Parse(input_path, input, typenames_, GetLanguage()); in TEST_P()
1190 auto parse_result = Parse(input_path, input, typenames_, GetLanguage()); in TEST_P()
1293 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", list_array_parcelable, typenames_, GetLanguage())); in TEST_P()
1315 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", primitive_interface, tn1, GetLanguage(), &error, in TEST_P()
1324 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", primitive_parcelable, tn2, GetLanguage(), &error, in TEST_P()
1337 EXPECT_EQ(nullptr, Parse("a/Data.aidl", extendable_parcelable, typenames_, GetLanguage())); in TEST_P()
1343 EXPECT_NE(nullptr, Parse("a/Data.aidl", extendable_parcelable, typenames_, GetLanguage())); in TEST_P()
1354 Parse("a/IFoo.aidl", parcelableholder_return_interface, typenames_, GetLanguage())); in TEST_P()
1375 Parse("a/IFoo.aidl", extendable_parcelable_arg_interface, typenames_, GetLanguage())); in TEST_P()
1793 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", contents, typenames_, GetLanguage())); in TEST_P()
3097 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
3113 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
3129 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
3145 EXPECT_EQ(nullptr, Parse("p/IFoo.aidl", in TEST_P()
3162 EXPECT_EQ(nullptr, Parse("p/TestEnum.aidl", in TEST_P()
3181 EXPECT_EQ(nullptr, Parse("p/TestEnum.aidl", in TEST_P()
3197 EXPECT_EQ(nullptr, Parse("Enum.aidl", "@Backing enum Enum { FOO }", typenames_, GetLanguage())); in TEST_P()
3284 EXPECT_NE(nullptr, Parse("Foo.aidl", "union Foo { Bar b; int n; }", typenames_, GetLanguage())); in TEST_P()
3292 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", method, typenames_, GetLanguage())); in TEST_P()
3301 EXPECT_EQ(nullptr, Parse("a/Foo.aidl", method, typenames_, GetLanguage())); in TEST_P()
3311 Parse("a/Foo.aidl", "package a; union Foo { a.Enum e; }", typenames_, GetLanguage())); in TEST_P()
3633 const AidlDefinedType* type = Parse("a/p/Foo.aidl", R"( in TEST_P()
3649 const AidlDefinedType* type = Parse("a/p/Foo.aidl", R"( in TEST_P()
3791 EXPECT_NE(nullptr, Parse("IFoo.aidl", contents, typenames_, GetLanguage())); in TEST_P()