summaryrefslogtreecommitdiffstats
path: root/adf/libadf/tests/adf_test.cpp
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2015-03-04 16:45:22 -0800
committerGreg Hackmann <ghackmann@google.com>2015-03-10 15:14:38 -0700
commit39b0c1c67d8c3c2ca1af4a61542c30fe001e7f8a (patch)
tree11c3851b3acb2336f0be0e610574f304d44105c9 /adf/libadf/tests/adf_test.cpp
parentb27bd94896dcfd94940e65a2438dc6a337c03038 (diff)
downloadsystem_core-39b0c1c67d8c3c2ca1af4a61542c30fe001e7f8a.zip
system_core-39b0c1c67d8c3c2ca1af4a61542c30fe001e7f8a.tar.gz
system_core-39b0c1c67d8c3c2ca1af4a61542c30fe001e7f8a.tar.bz2
libadf: tests: fix signed/unsigned comparison warnings
Bug: 19606869 Change-Id: I29cfa363b6640cc13973c1023d2f4ea1a97e3af2 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'adf/libadf/tests/adf_test.cpp')
-rw-r--r--adf/libadf/tests/adf_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/adf/libadf/tests/adf_test.cpp b/adf/libadf/tests/adf_test.cpp
index d95330d..01b2785 100644
--- a/adf/libadf/tests/adf_test.cpp
+++ b/adf/libadf/tests/adf_test.cpp
@@ -182,9 +182,9 @@ TEST_F(AdfTest, device_data) {
ASSERT_GE(err, 0) << "getting ADF device data failed: " << strerror(-err);
EXPECT_LT(data.n_attachments, ADF_MAX_ATTACHMENTS);
- EXPECT_GT(data.n_allowed_attachments, 0);
+ EXPECT_GT(data.n_allowed_attachments, 0U);
EXPECT_LT(data.n_allowed_attachments, ADF_MAX_ATTACHMENTS);
- EXPECT_LT(data.custom_data_size, ADF_MAX_CUSTOM_DATA_SIZE);
+ EXPECT_LT(data.custom_data_size, (size_t)ADF_MAX_CUSTOM_DATA_SIZE);
adf_free_device_data(&data);
}
@@ -195,8 +195,8 @@ TEST_F(AdfTest, interface_data) {
EXPECT_LT(data.type, ADF_INTF_TYPE_MAX);
EXPECT_LE(data.dpms_state, DRM_MODE_DPMS_OFF);
EXPECT_EQ(1, data.hotplug_detect);
- EXPECT_GT(data.n_available_modes, 0);
- EXPECT_LT(data.custom_data_size, ADF_MAX_CUSTOM_DATA_SIZE);
+ EXPECT_GT(data.n_available_modes, 0U);
+ EXPECT_LT(data.custom_data_size, (size_t)ADF_MAX_CUSTOM_DATA_SIZE);
adf_free_interface_data(&data);
}
@@ -206,9 +206,9 @@ TEST_F(AdfTest, overlay_engine_data) {
ASSERT_GE(err, 0) << "getting ADF overlay engine failed: " <<
strerror(-err);
- EXPECT_GT(data.n_supported_formats, 0);
+ EXPECT_GT(data.n_supported_formats, 0U);
EXPECT_LT(data.n_supported_formats, ADF_MAX_SUPPORTED_FORMATS);
- EXPECT_LT(data.custom_data_size, ADF_MAX_CUSTOM_DATA_SIZE);
+ EXPECT_LT(data.custom_data_size, (size_t)ADF_MAX_CUSTOM_DATA_SIZE);
adf_free_overlay_engine_data(&data);
}