diff --git a/sensor_msgs/test/test_image_encodings.cpp b/sensor_msgs/test/test_image_encodings.cpp index 9cfef93e..c2aefd5f 100644 --- a/sensor_msgs/test/test_image_encodings.cpp +++ b/sensor_msgs/test/test_image_encodings.cpp @@ -48,8 +48,8 @@ TEST(sensor_msgs, NumChannels) ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC"), 1); ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC3"), 3); ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC10"), 10); - ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuv422"), 2); - ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuv422_yuy2"), 2); + ASSERT_EQ(sensor_msgs::image_encodings::numChannels("uyvy"), 2); + ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuyv"), 2); } TEST(sensor_msgs, bitDepth) @@ -68,6 +68,6 @@ TEST(sensor_msgs, bitDepth) ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC"), 64); ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC3"), 64); ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC10"), 64); - ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuv422"), 8); - ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuv422_yuy2"), 8); + ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("uyvy"), 8); + ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuyv"), 8); }