Merge "tests.baz@1.0: changes for symmetric tests" am: a9f240232d
am: 295bf122fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438391 Change-Id: I896e6a776356ff2204ae7304e9d7f2583bb46a79
This commit is contained in:
commit
a8d0e57c2b
3 changed files with 10 additions and 1 deletions
|
@ -101,6 +101,8 @@ interface IBase {
|
|||
DoubleThreeDim double3;
|
||||
};
|
||||
|
||||
isJava() generates (bool isJava);
|
||||
|
||||
someBaseMethod();
|
||||
|
||||
someBoolMethod(bool x) generates (bool y);
|
||||
|
|
|
@ -43,6 +43,12 @@ Return<void> BazCallback::hey() {
|
|||
}
|
||||
|
||||
// Methods from ::android::hardware::tests::baz::V1_0::IBase follow.
|
||||
Return<bool> Baz::isJava() {
|
||||
LOG(INFO) << "Baz::isJava";
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Return<void> Baz::someBaseMethod() {
|
||||
LOG(INFO) << "Baz::someBaseMethod";
|
||||
|
||||
|
@ -331,7 +337,7 @@ Return<void> Baz::dieNow() {
|
|||
Return<IBaz::SomeEnum> Baz::useAnEnum(IBaz::SomeEnum zzz) {
|
||||
LOG(INFO) << "useAnEnum " << (int)zzz;
|
||||
|
||||
return SomeEnum::goober;
|
||||
return SomeEnum::quux;
|
||||
}
|
||||
|
||||
Return<void> Baz::haveSomeStrings(const hidl_array<hidl_string, 3>& array,
|
||||
|
|
|
@ -27,6 +27,7 @@ using ::android::sp;
|
|||
|
||||
struct Baz : public IBaz {
|
||||
// Methods from ::android::hardware::tests::baz::V1_0::IBase follow.
|
||||
Return<bool> isJava() override;
|
||||
Return<void> someBaseMethod() override;
|
||||
Return<bool> someBoolMethod(bool x) override;
|
||||
Return<void> someBoolArrayMethod(const hidl_array<bool, 3>& x,
|
||||
|
|
Loading…
Reference in a new issue