Branch data Line data Source code
1 : : // ----------------- BEGIN LICENSE BLOCK --------------------------------- 2 : : // 3 : : // Copyright (C) 2018-2021 Intel Corporation 4 : : // 5 : : // SPDX-License-Identifier: LGPL-2.1-only 6 : : // 7 : : // ----------------- END LICENSE BLOCK ----------------------------------- 8 : : 9 : : #include "TestSupport.hpp" 10 : : #include "ad/rss/core/RelativeObjectStateValidInputRange.hpp" 11 : : 12 : : namespace ad { 13 : : namespace rss { 14 : : 15 : 4 : TEST(CreateRelativeVehicleStateForLongitudinalMotion, check_standard_state) 16 : : { 17 [ + - ]: 1 : auto leadingVehicle = createRelativeVehicleStateForLongitudinalMotion(10); 18 : : 19 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(leadingVehicle)); - - - - - - - - + - ] 20 : : } 21 : : 22 : 4 : TEST(CreateRelativeVehicleStateForLongitudinalMotion, check_standard_state_100) 23 : : { 24 [ + - ]: 1 : auto leadingVehicle = createRelativeVehicleStateForLongitudinalMotion(100); 25 : : 26 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(leadingVehicle)); - - - - - - - - + - ] 27 : : } 28 : : 29 : : } // namespace rss 30 : : } // namespace ad