diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:04:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:04:25 +0000 |
commit | f8a87fe5dbeef638581184663319c81d1515af72 (patch) | |
tree | 299efbccc7f71daa67253b5d436c4bcdfaeddf9e /tests/fake_io_delegate.cpp | |
parent | b4c7f74eef3a44858749ea3400412c7f258fe476 (diff) | |
parent | 1487d3a350538efd795d41e681242d363bdbc2f9 (diff) | |
download | aidl-f8a87fe5dbeef638581184663319c81d1515af72.tar.gz |
Snap for 10453563 from 1487d3a350538efd795d41e681242d363bdbc2f9 to mainline-media-swcodec-releaseaml_swc_341711000aml_swc_341619000aml_swc_341513600aml_swc_341312300aml_swc_341312020aml_swc_341111000aml_swc_341011020aml_swc_340922010android14-mainline-media-swcodec-release
Change-Id: I655cd9c49b13842ed88061d7531ddca96cae68f6
Diffstat (limited to 'tests/fake_io_delegate.cpp')
-rw-r--r-- | tests/fake_io_delegate.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/fake_io_delegate.cpp b/tests/fake_io_delegate.cpp index 6bd2984c..41fa2a12 100644 --- a/tests/fake_io_delegate.cpp +++ b/tests/fake_io_delegate.cpp @@ -86,42 +86,6 @@ Result<vector<string>> FakeIoDelegate::ListFiles(const string& dir) const { return files; } -void FakeIoDelegate::AddStubParcelable(const string& canonical_name, - const string& cpp_header) { - string package, class_name, rel_path; - SplitPackageClass(canonical_name, &rel_path, &package, &class_name); - string contents; - if (cpp_header.empty()) { - contents = StringPrintf("package %s;\nparcelable %s;", - package.c_str(), class_name.c_str()); - } else { - contents = StringPrintf("package %s;\nparcelable %s cpp_header \"%s\";", - package.c_str(), class_name.c_str(), - cpp_header.c_str()); - } - SetFileContents(rel_path, contents); -} - -void FakeIoDelegate::AddStubInterface(const string& canonical_name) { - string package, class_name, rel_path; - SplitPackageClass(canonical_name, &rel_path, &package, &class_name); - string contents = StringPrintf("package %s;\ninterface %s { }", - package.c_str(), class_name.c_str()); - SetFileContents(rel_path, contents); -} - -void FakeIoDelegate::AddCompoundParcelable(const string& canonical_name, - const vector<string>& subclasses) { - string package, class_name, rel_path; - SplitPackageClass(canonical_name, &rel_path, &package, &class_name); - string contents = StringPrintf("package %s;\n", package.c_str()); - for (const string& subclass : subclasses) { - StringAppendF(&contents, "parcelable %s.%s;\n", - class_name.c_str(), subclass.c_str()); - } - SetFileContents(rel_path, contents); -} - void FakeIoDelegate::AddBrokenFilePath(const std::string& path) { broken_files_.insert(path); } |