aboutsummaryrefslogtreecommitdiff
path: root/tests/fake_io_delegate.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:04:25 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:04:25 +0000
commitf8a87fe5dbeef638581184663319c81d1515af72 (patch)
tree299efbccc7f71daa67253b5d436c4bcdfaeddf9e /tests/fake_io_delegate.cpp
parentb4c7f74eef3a44858749ea3400412c7f258fe476 (diff)
parent1487d3a350538efd795d41e681242d363bdbc2f9 (diff)
downloadaidl-f8a87fe5dbeef638581184663319c81d1515af72.tar.gz
Change-Id: I655cd9c49b13842ed88061d7531ddca96cae68f6
Diffstat (limited to 'tests/fake_io_delegate.cpp')
-rw-r--r--tests/fake_io_delegate.cpp36
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);
}