test-after-hw-reset.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 //#cmake: static!
5 //#test:device L500*
6 
7 #include "../func-common.h"
8 #include "../reset-camera.h"
9 #include "presets-common.h"
10 #include <l500/l500-options.h>
11 
12 using namespace rs2;
13 
14 TEST_CASE( "calc preset after hw reset", "[l500][live]" )
15 {
17  auto dev = devices[0];
18 
19  auto new_dev = reset_camera_and_wait_for_connection( dev );
20  auto depth_sens = new_dev.first< rs2::depth_sensor >();
21 
22  // Camera should boot up with max-range preset, always
24 }
TEST_CASE("calc preset after hw reset","[l500][live]")
Definition: cah-model.h:10
rs2::device reset_camera_and_wait_for_connection(rs2::device &dev)
Definition: reset-camera.h:11
rs2::device_list find_devices_by_product_line_or_exit(int product)
Definition: func-common.h:24
devices
Definition: test-fg.py:9
#define RS2_PRODUCT_LINE_L500
Definition: rs_context.h:96
#define CHECK(condition)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:11