summaryrefslogtreecommitdiffstats
path: root/ir
diff options
context:
space:
mode:
authorConnor O'Brien2017-06-28 18:46:43 -0500
committerConnor O'Brien2017-06-28 18:46:43 -0500
commit991aac7bf457bba2f155d3e6c72610ea43bc116a (patch)
tree56ac72900ea201d6b3ba4f5af6e80189f46a983e /ir
parent2c57b00b179808c4f103fac1b4d844d6aa8c7fa7 (diff)
downloadplatform-hardware-interfaces-991aac7bf457bba2f155d3e6c72610ea43bc116a.tar.gz
platform-hardware-interfaces-991aac7bf457bba2f155d3e6c72610ea43bc116a.tar.xz
platform-hardware-interfaces-991aac7bf457bba2f155d3e6c72610ea43bc116a.zip
Fix consumerir test bugs
The tests currently fail for some correct implementations; revise them so this no longer occurs. Bug: 63081607 Test: built & ran revised test Change-Id: I21b72fd864de57272bd6eb42dca238f661137b93 Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'ir')
-rw-r--r--ir/1.0/vts/functional/VtsHalIrV1_0TargetTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/1.0/vts/functional/VtsHalIrV1_0TargetTest.cpp b/ir/1.0/vts/functional/VtsHalIrV1_0TargetTest.cpp
index 3dad3c10..a0174046 100644
--- a/ir/1.0/vts/functional/VtsHalIrV1_0TargetTest.cpp
+++ b/ir/1.0/vts/functional/VtsHalIrV1_0TargetTest.cpp
@@ -59,7 +59,7 @@ TEST_F(ConsumerIrHidlTest, TransmitTest) {
59 uint32_t len = 16; 59 uint32_t len = 16;
60 hidl_vec<int32_t> vec; 60 hidl_vec<int32_t> vec;
61 vec.resize(len); 61 vec.resize(len);
62 std::fill(vec.begin(), vec.end(), 1); 62 std::fill(vec.begin(), vec.end(), 1000);
63 for (auto range = ranges.begin(); range != ranges.end(); range++) { 63 for (auto range = ranges.begin(); range != ranges.end(); range++) {
64 EXPECT_TRUE(ir->transmit(range->min, vec)); 64 EXPECT_TRUE(ir->transmit(range->min, vec));
65 EXPECT_TRUE(ir->transmit(range->max, vec)); 65 EXPECT_TRUE(ir->transmit(range->max, vec));
@@ -74,7 +74,6 @@ TEST_F(ConsumerIrHidlTest, BadFreqTest) {
74 vec.resize(len); 74 vec.resize(len);
75 std::fill(vec.begin(), vec.end(), 1); 75 std::fill(vec.begin(), vec.end(), 1);
76 EXPECT_FALSE(ir->transmit(-1, vec)); 76 EXPECT_FALSE(ir->transmit(-1, vec));
77 EXPECT_FALSE(ir->transmit(0, vec));
78} 77}
79 78
80int main(int argc, char **argv) { 79int main(int argc, char **argv) {