| 47 | namespace LibSerial |
| 48 | { |
| 49 | class SerialStreamUnitTests : public UnitTests |
| 50 | { |
| 51 | public: |
| 52 | |
| 53 | /** |
| 54 | * @brief Default Constructor. |
| 55 | */ |
| 56 | explicit SerialStreamUnitTests() ; |
| 57 | |
| 58 | /** |
| 59 | * @brief Default Destructor. |
| 60 | */ |
| 61 | virtual ~SerialStreamUnitTests() ; |
| 62 | |
| 63 | protected: |
| 64 | |
| 65 | /** |
| 66 | * @brief Tests constructor overloads and destructors. |
| 67 | */ |
| 68 | void testSerialStreamConstructors() ; |
| 69 | |
| 70 | /** |
| 71 | * @brief Tests correct functionality for opening and closing serial streams. |
| 72 | */ |
| 73 | void testSerialStreamOpenClose() ; |
| 74 | |
| 75 | /** |
| 76 | * @brief Tests correct functionality for draining the hardware write buffer using tcdrain(). |
| 77 | */ |
| 78 | void testSerialStreamDrainWriteBuffer() ; |
| 79 | |
| 80 | /** |
| 81 | * @brief Tests correct functionality for draining the hardware input (read) buffer using tcflush() ; |
| 82 | */ |
| 83 | void testSerialStreamFlushInputBuffer() ; |
| 84 | |
| 85 | /** |
| 86 | * @brief Tests correct functionality for draining the hardware write buffer using tcflush() ; |
| 87 | */ |
| 88 | void testSerialStreamFlushOutputBuffer() ; |
| 89 | |
| 90 | /** |
| 91 | * @brief Tests correct functionality for draining the hardware read/write buffers using tcflush() ; |
| 92 | */ |
| 93 | void testSerialStreamFlushIOBuffers() ; |
| 94 | |
| 95 | /** |
| 96 | * @brief Tests correct functionality for checking if data is available. |
| 97 | */ |
| 98 | void testSerialStreamIsDataAvailableTest() ; |
| 99 | |
| 100 | /** |
| 101 | * @brief Tests for correct functionality of the Open() and Close() methods. |
| 102 | */ |
| 103 | void testSerialStreamIsOpenTest() ; |
| 104 | |
| 105 | /** |
| 106 | * @brief Tests for correct functionality of the SetBaudRate() and GetBaudRate() methods. |
nothing calls this directly
no outgoing calls
no test coverage detected