| 46 | namespace LibSerial |
| 47 | { |
| 48 | class MultiThreadUnitTests : public UnitTests |
| 49 | { |
| 50 | public: |
| 51 | |
| 52 | /** |
| 53 | * @brief Default Constructor. |
| 54 | */ |
| 55 | explicit MultiThreadUnitTests() ; |
| 56 | |
| 57 | /** |
| 58 | * @brief Default Destructor. |
| 59 | */ |
| 60 | virtual ~MultiThreadUnitTests() ; |
| 61 | |
| 62 | protected: |
| 63 | |
| 64 | /** |
| 65 | * @brief Tests for correct functionality of a multi-threaded serial stream application. |
| 66 | */ |
| 67 | void serialStream1ThreadLoop() ; |
| 68 | |
| 69 | /** |
| 70 | * @brief Tests for correct functionality of a multi-threaded serial port application. |
| 71 | */ |
| 72 | void serialStream2ThreadLoop() ; |
| 73 | |
| 74 | /** |
| 75 | * @brief Main loop for the multi-threaded serial stream unit test. |
| 76 | */ |
| 77 | void serialPort1ThreadLoop() ; |
| 78 | |
| 79 | /** |
| 80 | * @brief Main loop for the multi-threaded serial port unit test. |
| 81 | */ |
| 82 | void serialPort2ThreadLoop() ; |
| 83 | |
| 84 | /** |
| 85 | * @brief Entry point for the multi-thread serial stream unit test. |
| 86 | */ |
| 87 | void testMultiThreadSerialStreamReadWrite() ; |
| 88 | |
| 89 | /** |
| 90 | * @brief Entry point for the multi-thread serial port unit test. |
| 91 | */ |
| 92 | void testMultiThreadSerialPortReadWrite() ; |
| 93 | |
| 94 | /** |
| 95 | * @param C++11 thread std::mutex for locking parameters in the threaded unit tests. |
| 96 | */ |
| 97 | std::mutex mutex {} ; |
| 98 | |
| 99 | } ; // class MultiThreadUnitTests |
| 100 | |
| 101 | } // namespace LibSerial |
nothing calls this directly
no outgoing calls
no test coverage detected