34 #include "gtest/gtest.h" 38 TEST(SerialQueryTest, Constructor)
40 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
44 TEST(SerialQueryTest, Connected)
46 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
50 EXPECT_FALSE(serial_query.connected());
53 TEST(SerialQueryTest, Disconnect)
55 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
59 serial_query.disconnect();
62 TEST(SerialQueryTest, NumPackets)
64 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
68 EXPECT_EQ(serial_query.getNumCorruptPackets(), 0);
69 EXPECT_EQ(serial_query.getTotalPackets(), 0);
72 TEST(SerialQueryTest, Send)
74 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
80 EXPECT_FALSE(serial_query.send(bytes, 4));
83 TEST(SerialQueryTest, SendOpcode)
85 std::shared_ptr<create::Data> data_ptr = std::make_shared<create::Data>();
TEST(SerialQueryTest, Constructor)