Lines Matching defs:aidl

25 #include "aidl.h"
32 using android::aidl::test::FakeIoDelegate;
38 using android::aidl::internals::parse_preprocessed_file;
41 namespace aidl {
46 p/IFoo.aidl
48 p/IFoo.aidl :
53 p/IFoo.aidl
58 p/Foo.aidl
60 p/Foo.aidl :
79 AidlError actual_error = ::android::aidl::internals::load_and_validate_aidl(
102 EXPECT_NE(nullptr, Parse("IFoo.aidl", "interface IFoo { }", &java_types_));
107 io_delegate_.SetFileContents("bar/IBar.aidl",
109 string path = "foo/IFoo.aidl";
118 EXPECT_EQ(nullptr, Parse("IFoo.aidl", "interface IFoo { }", &cpp_types_));
120 Parse("a/IFoo.aidl", "package a; interface IFoo { }", &cpp_types_));
128 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_interface, &cpp_types_));
129 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_interface, &java_types_));
130 EXPECT_EQ(nullptr, Parse("a/IBar.aidl", oneway_method, &cpp_types_));
131 EXPECT_EQ(nullptr, Parse("a/IBar.aidl", oneway_method, &java_types_));
136 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, &cpp_types_));
137 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, &java_types_));
142 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, &cpp_types_));
143 EXPECT_EQ(nullptr, Parse("a/IFoo.aidl", oneway_method, &java_types_));
149 "a/IFoo.aidl",
163 "a/IFoo.aidl",
178 EXPECT_NE(nullptr, Parse("a/IFoo.aidl", oneway_method, &cpp_types_));
179 EXPECT_NE(nullptr, Parse("a/IFoo.aidl", oneway_method, &java_types_));
180 EXPECT_NE(nullptr, Parse("a/IBar.aidl", oneway_interface, &cpp_types_));
181 EXPECT_NE(nullptr, Parse("a/IBar.aidl", oneway_interface, &java_types_));
204 io_delegate_.SetFileContents("one/IBar.aidl", "package one; "
209 "p/IFoo.aidl", "package p; import one.IBar; interface IFoo {}",
223 io_delegate_.SetFileContents("p/Outer.aidl",
225 io_delegate_.SetFileContents("one/IBar.aidl", "package one; import p.Outer;"
231 options.files_to_preprocess_[0] = "p/Outer.aidl";
232 options.files_to_preprocess_[1] = "one/IBar.aidl";
233 EXPECT_TRUE(::android::aidl::preprocess_aidl(options, io_delegate_));
241 io_delegate_.SetFileContents("p/Outer.aidl",
245 "p/IFoo.aidl",
256 "p/IFoo.aidl",
267 options.input_file_name_ = "p/IFoo.aidl";
271 EXPECT_EQ(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_));
273 EXPECT_NE(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_));
279 Parse("p/IFoo.aidl",
294 Parse("p/IFoo.aidl",
308 Parse("p/IFoo.aidl",
326 Parse("p/IFoo.aidl",
343 "p/Outer.aidl",
346 const string input_path = "p/IFoo.aidl";
360 "p/Bar.aidl",
363 const string input_path = "p/IFoo.aidl";
390 options.input_file_name_ = "p/IFoo.aidl";
395 EXPECT_EQ(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_));
407 options.input_file_name_ = "p/IFoo.aidl";
413 EXPECT_EQ(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_));
421 // The SDK uses aidl to decide whether a .aidl file is a parcelable. It does
422 // this by calling aidl with every .aidl file it finds, then parsing the
427 options.input_file_name_ = "p/Foo.aidl";
432 EXPECT_EQ(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_));
439 } // namespace aidl