#include "catch/catch.hpp"
#include "unit-tests-common.h"
#include <climits>
#include <sstream>
#include <algorithm>
Go to the source code of this file.
Defines | |
#define | CATCH_CONFIG_MAIN |
Functions | |
TEST_CASE ("SR300 metadata enumerates correctly","[live] [sr300]") | |
TEST_CASE ("SR300 devices support all required options","[live] [sr300]") | |
TEST_CASE ("SR300 device extrinsics are within expected parameters","[live] [sr300]") | |
TEST_CASE ("SR300 streams 1080p color","[live] [sr300] [one-camera]") | |
TEST_CASE ("SR300 streams 720p color","[live] [sr300] [one-camera]") | |
TEST_CASE ("SR300 streams VGA color","[live] [sr300] [one-camera]") | |
TEST_CASE ("SR300 supports RS_OPTION_F200_LASER_POWER","[live] [sr300]") | |
TEST_CASE ("SR300 supports RS_OPTION_F200_ACCURACY","[live] [sr300]") | |
TEST_CASE ("SR300 supports RS_OPTION_F200_MOTION_RANGE","[live] [sr300]") | |
TEST_CASE ("SR300 supports RS_OPTION_F200_FILTER_OPTION","[live] [sr300]") | |
TEST_CASE ("SR300 supports RS_OPTION_F200_CONFIDENCE_THRESHOLD","[live] [sr300]") | |
TEST_CASE ("a single SR300 can stream a variety of reasonable streaming mode combinations","[live] [sr300] [one-camera]") | |
void | test_options (rs_device *device, rs_option *option_list, size_t options, std::vector< double > good_values, std::vector< double > bad_values, std::vector< double > &ret_values, const std::string &expected_success_msg, const std::string &expected_error_msg, bool bWrite) |
void | test_sr300_command (rs_device *dev, std::vector< rs_option > options_list, std::vector< double > good_values, std::vector< double > bad_values, std::vector< double > &ret_values, const std::string &expected_success_msg, const std::string &expected_error_msg, int when, bool write_cmd) |
void | test_sr300_option (rs_option option, std::initializer_list< int > values, int when) |
void | test_sr300_streaming (std::initializer_list< stream_mode > modes) |
#define CATCH_CONFIG_MAIN |
Definition at line 10 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 metadata enumerates correctly" | , |
" " | [live][sr300] | ||
) |
Definition at line 19 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 devices support all required options" | , |
" " | [live][sr300] | ||
) |
Definition at line 40 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 device extrinsics are within expected parameters" | , |
" " | [live][sr300] | ||
) |
Definition at line 106 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 streams 1080p color" | , |
" " | [live][sr300][one-camera] | ||
) |
Definition at line 156 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 streams 720p color" | , |
" " | [live][sr300][one-camera] | ||
) |
Definition at line 161 of file unit-tests-live-sr300.cpp.
Definition at line 166 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 supports RS_OPTION_F200_LASER_POWER" | , |
" " | [live][sr300] | ||
) |
Definition at line 337 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 supports RS_OPTION_F200_ACCURACY" | , |
" " | [live][sr300] | ||
) |
Definition at line 342 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 supports RS_OPTION_F200_MOTION_RANGE" | , |
" " | [live][sr300] | ||
) |
Definition at line 347 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 supports RS_OPTION_F200_FILTER_OPTION" | , |
" " | [live][sr300] | ||
) |
Definition at line 352 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "SR300 supports RS_OPTION_F200_CONFIDENCE_THRESHOLD" | , |
" " | [live][sr300] | ||
) |
Definition at line 357 of file unit-tests-live-sr300.cpp.
TEST_CASE | ( | "a single SR300 can stream a variety of reasonable streaming mode combinations" | , |
" " | [live][sr300][one-camera] | ||
) |
Definition at line 366 of file unit-tests-live-sr300.cpp.
void test_options | ( | rs_device * | device, |
rs_option * | option_list, | ||
size_t | options, | ||
std::vector< double > | good_values, | ||
std::vector< double > | bad_values, | ||
std::vector< double > & | ret_values, | ||
const std::string & | expected_success_msg, | ||
const std::string & | expected_error_msg, | ||
bool | bWrite | ||
) | [inline] |
Definition at line 413 of file unit-tests-live-sr300.cpp.
void test_sr300_command | ( | rs_device * | dev, |
std::vector< rs_option > | options_list, | ||
std::vector< double > | good_values, | ||
std::vector< double > | bad_values, | ||
std::vector< double > & | ret_values, | ||
const std::string & | expected_success_msg, | ||
const std::string & | expected_error_msg, | ||
int | when, | ||
bool | write_cmd | ||
) | [inline] |
Definition at line 448 of file unit-tests-live-sr300.cpp.
void test_sr300_option | ( | rs_option | option, |
std::initializer_list< int > | values, | ||
int | when | ||
) | [inline] |
Definition at line 311 of file unit-tests-live-sr300.cpp.
void test_sr300_streaming | ( | std::initializer_list< stream_mode > | modes | ) | [inline] |
Definition at line 141 of file unit-tests-live-sr300.cpp.