|
| REQUIRE (rs_create_context(RS_API_VERSION+100, require_error("", false))==nullptr) |
|
| REQUIRE (ctx!=nullptr) |
|
| REQUIRE (rs_get_device(fake_object_pointer(),-1, require_error("out of range value for argument \"index\""))==nullptr) |
|
| REQUIRE (rs_device_supports_option(fake_object_pointer(),(rs_option)-1, require_error("bad enum value for argument \"option\""))==0) |
|
| REQUIRE (rs_device_supports_option(fake_object_pointer(), RS_OPTION_COUNT, require_error("bad enum value for argument \"option\""))==0) |
|
| REQUIRE (rs_get_stream_mode_count(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_stream_mode_count(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_is_stream_enabled(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_is_stream_enabled(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_stream_format(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==RS_FORMAT_ANY) |
|
| REQUIRE (rs_get_stream_format(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==RS_FORMAT_ANY) |
|
| REQUIRE (rs_get_stream_framerate(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_stream_framerate(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_device_option(fake_object_pointer(),(rs_option)-1, require_error("bad enum value for argument \"option\""))==0) |
|
| REQUIRE (rs_get_device_option(fake_object_pointer(), RS_OPTION_COUNT, require_error("bad enum value for argument \"option\""))==0) |
|
| REQUIRE (rs_get_frame_timestamp(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_frame_timestamp(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==0) |
|
| REQUIRE (rs_get_frame_data(fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\""))==nullptr) |
|
| REQUIRE (rs_get_frame_data(fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\""))==nullptr) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_COLOR)==std::string("COLOR")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_INFRARED)==std::string("INFRARED")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_INFRARED2)==std::string("INFRARED2")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_RECTIFIED_COLOR)==std::string("RECTIFIED_COLOR")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_COLOR_ALIGNED_TO_DEPTH)==std::string("COLOR_ALIGNED_TO_DEPTH")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_DEPTH_ALIGNED_TO_COLOR)==std::string("DEPTH_ALIGNED_TO_COLOR")) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_DEPTH_ALIGNED_TO_RECTIFIED_COLOR)==std::string("DEPTH_ALIGNED_TO_RECTIFIED_COLOR")) |
|
| REQUIRE (rs_stream_to_string((rs_stream)-1)==unknown) |
|
| REQUIRE (rs_stream_to_string(RS_STREAM_COUNT)==unknown) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_Z16)==std::string("Z16")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_DISPARITY16)==std::string("DISPARITY16")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_YUYV)==std::string("YUYV")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_RGB8)==std::string("RGB8")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_BGR8)==std::string("BGR8")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_RGBA8)==std::string("RGBA8")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_BGRA8)==std::string("BGRA8")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_Y8)==std::string("Y8")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_Y16)==std::string("Y16")) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_RAW10)==std::string("RAW10")) |
|
| REQUIRE (rs_format_to_string((rs_format)-1)==unknown) |
|
| REQUIRE (rs_format_to_string(RS_FORMAT_COUNT)==unknown) |
|
| REQUIRE (rs_preset_to_string(RS_PRESET_LARGEST_IMAGE)==std::string("LARGEST_IMAGE")) |
|
| REQUIRE (rs_preset_to_string(RS_PRESET_HIGHEST_FRAMERATE)==std::string("HIGHEST_FRAMERATE")) |
|
| REQUIRE (rs_preset_to_string((rs_preset)-1)==unknown) |
|
| REQUIRE (rs_preset_to_string(RS_PRESET_COUNT)==unknown) |
|
| REQUIRE (rs_distortion_to_string(RS_DISTORTION_MODIFIED_BROWN_CONRADY)==std::string("MODIFIED_BROWN_CONRADY")) |
|
| REQUIRE (rs_distortion_to_string(RS_DISTORTION_INVERSE_BROWN_CONRADY)==std::string("INVERSE_BROWN_CONRADY")) |
|
| REQUIRE (rs_distortion_to_string((rs_distortion)-1)==unknown) |
|
| REQUIRE (rs_distortion_to_string(RS_DISTORTION_COUNT)==unknown) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_BRIGHTNESS)==std::string("COLOR_BRIGHTNESS")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_CONTRAST)==std::string("COLOR_CONTRAST")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_EXPOSURE)==std::string("COLOR_EXPOSURE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_GAIN)==std::string("COLOR_GAIN")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_GAMMA)==std::string("COLOR_GAMMA")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_HUE)==std::string("COLOR_HUE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_SATURATION)==std::string("COLOR_SATURATION")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_SHARPNESS)==std::string("COLOR_SHARPNESS")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_WHITE_BALANCE)==std::string("COLOR_WHITE_BALANCE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_ENABLE_AUTO_EXPOSURE)==std::string("COLOR_ENABLE_AUTO_EXPOSURE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COLOR_ENABLE_AUTO_WHITE_BALANCE)==std::string("COLOR_ENABLE_AUTO_WHITE_BALANCE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_LASER_POWER)==std::string("F200_LASER_POWER")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_ACCURACY)==std::string("F200_ACCURACY")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_MOTION_RANGE)==std::string("F200_MOTION_RANGE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_FILTER_OPTION)==std::string("F200_FILTER_OPTION")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_CONFIDENCE_THRESHOLD)==std::string("F200_CONFIDENCE_THRESHOLD")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_F200_DYNAMIC_FPS)==std::string("F200_DYNAMIC_FPS")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_LR_AUTO_EXPOSURE_ENABLED)==std::string("R200_LR_AUTO_EXPOSURE_ENABLED")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_LR_GAIN)==std::string("R200_LR_GAIN")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_LR_EXPOSURE)==std::string("R200_LR_EXPOSURE")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_EMITTER_ENABLED)==std::string("R200_EMITTER_ENABLED")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_DEPTH_UNITS)==std::string("R200_DEPTH_UNITS")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_DEPTH_CLAMP_MIN)==std::string("R200_DEPTH_CLAMP_MIN")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_DEPTH_CLAMP_MAX)==std::string("R200_DEPTH_CLAMP_MAX")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_DISPARITY_MULTIPLIER)==std::string("R200_DISPARITY_MULTIPLIER")) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_R200_DISPARITY_SHIFT)==std::string("R200_DISPARITY_SHIFT")) |
|
| REQUIRE (rs_option_to_string((rs_option)-1)==unknown) |
|
| REQUIRE (rs_option_to_string(RS_OPTION_COUNT)==unknown) |
|
| REQUIRE (rs_get_device_count(ctx, require_no_error()) >=0) |
|
| rs_delete_context (ctx, require_no_error()) |
|
| rs_disable_stream (fake_object_pointer(),(rs_stream)-1, require_error("bad enum value for argument \"stream\"")) |
|
| rs_disable_stream (fake_object_pointer(), RS_STREAM_COUNT, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream (fake_object_pointer(),(rs_stream)-1, 640, 480, RS_FORMAT_Z16, 60, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_COUNT, 640, 480, RS_FORMAT_Z16, 60, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_MAX_ENUM, 640, 480, RS_FORMAT_Z16, 60, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH,-1, 480, RS_FORMAT_Z16, 60, require_error("out of range value for argument \"width\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH, 640,-1, RS_FORMAT_Z16, 60, require_error("out of range value for argument \"height\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH, 640, 480,(rs_format)-1, 60, require_error("bad enum value for argument \"format\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH, 640, 480, RS_FORMAT_COUNT, 60, require_error("bad enum value for argument \"format\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH, 640, 480, RS_FORMAT_MAX_ENUM, 60, require_error("bad enum value for argument \"format\"")) |
|
| rs_enable_stream (fake_object_pointer(), RS_STREAM_DEPTH, 640, 480, RS_FORMAT_Z16,-1, require_error("out of range value for argument \"framerate\"")) |
|
| rs_enable_stream_preset (fake_object_pointer(),(rs_stream)-1, RS_PRESET_BEST_QUALITY, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream_preset (fake_object_pointer(), RS_STREAM_COUNT, RS_PRESET_BEST_QUALITY, require_error("bad enum value for argument \"stream\"")) |
|
| rs_enable_stream_preset (fake_object_pointer(), RS_STREAM_DEPTH,(rs_preset)-1, require_error("bad enum value for argument \"preset\"")) |
|
| rs_enable_stream_preset (fake_object_pointer(), RS_STREAM_DEPTH, RS_PRESET_COUNT, require_error("bad enum value for argument \"preset\"")) |
|
| rs_get_device_extrinsics (nullptr, RS_STREAM_DEPTH, RS_STREAM_COLOR,&extrin, require_error("null pointer passed for argument \"device\"")) |
|
| rs_get_device_extrinsics (fake_object_pointer(),(rs_stream)-1, RS_STREAM_COLOR,&extrin, require_error("bad enum value for argument \"from\"")) |
|
| rs_get_device_extrinsics (fake_object_pointer(), RS_STREAM_COUNT, RS_STREAM_COLOR,&extrin, require_error("bad enum value for argument \"from\"")) |
|
| rs_get_device_extrinsics (fake_object_pointer(), RS_STREAM_DEPTH,(rs_stream)-1,&extrin, require_error("bad enum value for argument \"to\"")) |
|
| rs_get_device_extrinsics (fake_object_pointer(), RS_STREAM_DEPTH, RS_STREAM_COUNT,&extrin, require_error("bad enum value for argument \"to\"")) |
|
| rs_get_device_extrinsics (fake_object_pointer(), RS_STREAM_DEPTH, RS_STREAM_COLOR, nullptr, require_error("null pointer passed for argument \"extrin\"")) |
|
| rs_get_stream_intrinsics (nullptr, RS_STREAM_DEPTH,&intrin, require_error("null pointer passed for argument \"device\"")) |
|
| rs_get_stream_intrinsics (fake_object_pointer(),(rs_stream)-1,&intrin, require_error("bad enum value for argument \"stream\"")) |
|
| rs_get_stream_intrinsics (fake_object_pointer(), RS_STREAM_COUNT,&intrin, require_error("bad enum value for argument \"stream\"")) |
|
| rs_get_stream_intrinsics (fake_object_pointer(), RS_STREAM_DEPTH, nullptr, require_error("null pointer passed for argument \"intrin\"")) |
|
| rs_get_stream_mode (nullptr, RS_STREAM_DEPTH, 0,&width,&height,&format,&framerate, require_error("null pointer passed for argument \"device\"")) |
|
| rs_get_stream_mode (fake_object_pointer(),(rs_stream)-1, 0,&width,&height,&format,&framerate, require_error("bad enum value for argument \"stream\"")) |
|
| rs_get_stream_mode (fake_object_pointer(), RS_STREAM_COUNT, 0,&width,&height,&format,&framerate, require_error("bad enum value for argument \"stream\"")) |
|
| rs_get_stream_mode (fake_object_pointer(), RS_STREAM_DEPTH,-1,&width,&height,&format,&framerate, require_error("out of range value for argument \"index\"")) |
|
| rs_set_device_option (fake_object_pointer(),(rs_option)-1, 100, require_error("bad enum value for argument \"option\"")) |
|
| rs_set_device_option (fake_object_pointer(), RS_OPTION_COUNT, 100, require_error("bad enum value for argument \"option\"")) |
|
| TEST_CASE ("wraparound_mechanism produces correct output","[offline] [validation]") |
|
| TEST_CASE ("rs_context has singleton semantics","[offline] [validation]") |
|
| TEST_CASE ("rs API version verification","[offline] [validation]") |
|