commit | 9ae49349b91754bc1efb2952df6543afa827f52c | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Jul 27 16:40:13 2022 +0000 |
committer | Steven Moreland <smoreland@google.com> | Wed Jul 27 16:40:13 2022 +0000 |
tree | 695514737792b7ea4dd813003c0d96d0c58e6970 | |
parent | 8f60fa314f940d54eae96788b7da9fb334d113d7 [diff] |
IThermalManagerTest: fix double-owned The test object is owned by gtest and therefore also can't be a callback (inheriting from RefBase which implies ownership). This bug is causing an abort now. To detect it automatically in the type system, you can use the cflag -DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION . Fixes: 240371998 Test: atest libpowermanager_test Change-Id: I68a2403d33cdbba225aee95a5dd22a96371904ce