18 #include <gtest/gtest.h> 30 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
43 ASSERT_TRUE(bp.
empty()) <<
"Did not consume all data";
51 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
66 ASSERT_TRUE(bp.
empty()) <<
"Did not consume all data";
74 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
90 ASSERT_TRUE(bp.
empty()) <<
"Did not consume all data";
98 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
106 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
114 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
virtual bool parseWith(BinParser &bp)
double target_speed_fraction
robot_mode_V3_X robot_mode
BinParser getParser(bool skip=false)
robot_control_mode_V3_X control_mode
double target_speed_fraction_limit
robot_mode_V1_X robot_mode
TEST(RobotModeData_V1_X, testRandomDataParsing)
virtual bool parseWith(BinParser &bp)
bool physical_robot_connected
virtual bool parseWith(BinParser &bp)