unit-tests-live-lr200.cpp
Go to the documentation of this file.
00001 // License: Apache 2.0. See LICENSE file in root directory.
00002 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
00003 
00005 // This set of tests is valid only for the R200 camera //
00007 
00008 #if !defined(MAKEFILE) || ( defined(LIVE_TEST) && ( defined(LR200_TEST) || defined(ZR300_TEST) ) )
00009 
00010 #include "unit-tests-live-ds-common.h"
00011 
00012 #include <climits>
00013 #include <sstream>
00014 
00015 TEST_CASE("Streams COLOR HD 1920X1080  Raw16 30FPS", "[live] [lr200] [one-camera]")
00016 {
00017     // Require only one device to be plugged in
00018     safe_context ctx;
00019     const int device_count = rs_get_device_count(ctx, require_no_error());
00020     REQUIRE(device_count == 1);
00021 
00022     rs_device * dev = rs_get_device(ctx, 0, require_no_error());
00023     REQUIRE(dev != nullptr);
00024     REQUIRE(std::any_of(ds_names.begin(), ds_names.end(), [&](std::string const& s) {return s == rs_get_device_name(dev, require_no_error()); }));
00025 
00026     test_ds_device_streaming({ {RS_STREAM_COLOR, 1920, 1080, RS_FORMAT_RAW16, 30} });
00027 }
00028 
00029 //TEST_CASE("LR200 Testing RGB Exposure values", "[live] [DS-device] [one-camera]")
00030 //{
00031 //    // the range is [-8:1:-4]
00032 //    test_ds_device_option(RS_OPTION_COLOR_EXPOSURE, { -8, -7, -6, -5, -4 }, {}, BEFORE_START_DEVICE | AFTER_START_DEVICE);
00033 //}
00034 
00035 #endif /* !defined(MAKEFILE) || ( defined(LIVE_TEST) && ( defined(LR200_TEST) || defined(ZR300_TEST) ) ) */


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:39