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