diff options
author | Martijn Coenen <maco@google.com> | 2016-10-27 11:51:46 +0200 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2016-11-01 13:09:53 +0100 |
commit | b7307d5c8acedec902c2a39de62065b2dbb9ae1a (patch) | |
tree | 4dd073a8e729a1c5c6fde48afddf20a68ea94f98 /tests/bar | |
parent | 0d4bc82111c77f25851db8e682eddccff4157e4d (diff) | |
download | platform_hardware_interfaces-b7307d5c8acedec902c2a39de62065b2dbb9ae1a.tar.gz platform_hardware_interfaces-b7307d5c8acedec902c2a39de62065b2dbb9ae1a.tar.bz2 platform_hardware_interfaces-b7307d5c8acedec902c2a39de62065b2dbb9ae1a.zip |
Add method to IFoo for testing NULL interfaces.
Bug: 32410513
Test: mma, hidl_test
Change-Id: I791c3a95e670a859e5e494ead987d2a93f5047a5
Diffstat (limited to 'tests/bar')
-rw-r--r-- | tests/bar/1.0/default/Bar.cpp | 4 | ||||
-rw-r--r-- | tests/bar/1.0/default/Bar.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/bar/1.0/default/Bar.cpp b/tests/bar/1.0/default/Bar.cpp index b960524b20..0257ee0b0e 100644 --- a/tests/bar/1.0/default/Bar.cpp +++ b/tests/bar/1.0/default/Bar.cpp @@ -142,6 +142,10 @@ Return<void> Bar::closeHandles() { return mFoo->closeHandles(); } +Return<void> Bar::echoNullInterface(const sp<IFooCallback> &cb, echoNullInterface_cb _hidl_cb) { + return mFoo->echoNullInterface(cb, _hidl_cb); +} + // Methods from ::android::hardware::tests::bar::V1_0::IBar follow. Return<void> Bar::thisIsNew() { ALOGI("SERVER(Bar) thisIsNew"); diff --git a/tests/bar/1.0/default/Bar.h b/tests/bar/1.0/default/Bar.h index 6fea563048..ec55e8b1fd 100644 --- a/tests/bar/1.0/default/Bar.h +++ b/tests/bar/1.0/default/Bar.h @@ -60,6 +60,8 @@ struct Bar : public IBar { const hidl_vec<sp<android::hardware::IBinder> > &in, haveAVectorOfGenericInterfaces_cb _hidl_cb) override; + Return<void> echoNullInterface(const sp<IFooCallback> &cb, echoNullInterface_cb _hidl_cb) override; + // Methods from ::android::hardware::tests::bar::V1_0::IBar follow. Return<void> thisIsNew() override; |