commit | 09e600526f24c7f12aaf73e33e39ca0140d1f3e0 | [log] [tgz] |
---|---|---|
author | Valerie Hau <vhau@google.com> | Sun Dec 15 14:51:15 2019 -0800 |
committer | Valerie Hau <vhau@google.com> | Mon Dec 16 17:34:44 2019 +0000 |
tree | 5360af5bcc010fd67883a9c53e84623ad926e43e | |
parent | d0d28e3183d55c4a23d87b59681ceac3e3cf133d [diff] [blame] |
Fix check for nullptr surface IBinder Bug: 146345307 Test: build, boot, libsurfaceflinger_unittest, SurfaceFlinger_test Change-Id: I79d5bb71beb573c3c8a150c938aa6d7fa301353f
diff --git a/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp b/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp index a465388..994a509 100644 --- a/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp +++ b/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp
@@ -315,4 +315,9 @@ BlockedByPriorTransaction(/*flags*/ 0, /*syncInputWindows*/ true); } +TEST_F(TransactionApplicationTest, FromHandle) { + sp<IBinder> badHandle; + auto ret = mFlinger.fromHandle(badHandle); + EXPECT_EQ(nullptr, ret.get()); +} } // namespace android