summaryrefslogtreecommitdiffstats
path: root/ir
diff options
context:
space:
mode:
authorConnor O'Brien2017-06-28 21:15:16 -0500
committerandroid-build-merger2017-06-28 21:15:16 -0500
commit601ae82ebcc19918cbac0e33e6ea5bd9f609eaaf (patch)
treeb4787d883f96c6a1067d6448808f7bb89e9a2e1e /ir
parented0a5d2eba9ff19bc1cb4194347f3dff3f08f475 (diff)
parent9f0b8369e97982bf255defe2898338176821b2f8 (diff)
downloadplatform-hardware-interfaces-601ae82ebcc19918cbac0e33e6ea5bd9f609eaaf.tar.gz
platform-hardware-interfaces-601ae82ebcc19918cbac0e33e6ea5bd9f609eaaf.tar.xz
platform-hardware-interfaces-601ae82ebcc19918cbac0e33e6ea5bd9f609eaaf.zip
Merge "Fix consumerir test bugs" into oc-dev
am: 9f0b8369e9 Change-Id: I6e28e41595743e614a4f10f6e014673edc4c4bad
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) {