mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
20e7af61590dd024096e1d49365ca5bbc95216ea
ASSERT_INVALID_ARGUMENTS was a macro that asserted that a given Result or Return contained INVALID_ARGUMENT. The problem was that a result can have lots of other values like INVALID_STATE or NOT_SUPPORTED. Additionally not all test expect only one possible result. Introduce two overload of ASSERT_RESULT() The first one takes an expected Result value and compare it to the obtained one. The second take a list and expect the obtained one to be in this list. Test: run the test on target Bug: 34170075 Change-Id: I798729f27f723c98292610bfb43dbdb2724ec2ca Signed-off-by: Kevin Rocard <krocard@google.com>
Description
No description provided
Languages
C++
56.3%
AIDL
41.2%
C
1.5%
Rust
0.4%
Java
0.4%
Other
0.1%