Merge "audio: Fix streamCommon nullptr check in VTS" am: 7c2b5ed7a1
am: 9e6ab24989
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2363001 Change-Id: I2c889b45dee7199a5b3829837eeb25c08fefaee7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f39ccc440d
1 changed files with 2 additions and 2 deletions
|
@ -1835,10 +1835,10 @@ class AudioStream : public AudioCoreModule {
|
|||
ASSERT_NO_FATAL_FAILURE(stream.SetUp(module.get(), kDefaultBufferSizeFrames));
|
||||
std::shared_ptr<IStreamCommon> streamCommon1;
|
||||
EXPECT_IS_OK(stream.get()->getStreamCommon(&streamCommon1));
|
||||
EXPECT_NE(nullptr, streamCommon1);
|
||||
std::shared_ptr<IStreamCommon> streamCommon2;
|
||||
EXPECT_IS_OK(stream.get()->getStreamCommon(&streamCommon2));
|
||||
EXPECT_NE(nullptr, streamCommon2);
|
||||
ASSERT_NE(nullptr, streamCommon1);
|
||||
ASSERT_NE(nullptr, streamCommon2);
|
||||
EXPECT_EQ(streamCommon1->asBinder(), streamCommon2->asBinder())
|
||||
<< "getStreamCommon must return the same interface instance across invocations";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue