Extend hidl-gen to support generate vts file.
b/30762234
TODO: add regression test.
Change-Id: I1c31fd9a85805cd450ea03cc0ccc750a756d1009
diff --git a/Method.cpp b/Method.cpp
index 8c140ff..37c71ea 100644
--- a/Method.cpp
+++ b/Method.cpp
@@ -9,7 +9,7 @@
Method::Method(const char *name,
std::vector<TypedVar *> *args,
std::vector<TypedVar *> *results,
- KeyedVector<std::string, Annotation *> *annotations)
+ AnnotationVector *annotations)
: mName(name),
mArgs(args),
mResults(results),
@@ -28,7 +28,7 @@
return *mResults;
}
-const KeyedVector<std::string, Annotation *> &Method::annotations() const {
+const AnnotationVector &Method::annotations() const {
return *mAnnotationsByName;
}