|
hlcc 2.0.0-beta2+pre1
|
Classes | |
| class | CiiOldbDataPointAsyncTest |
| class | CircularBufferConcurrentTest |
Functions | |
| TEST_F (CiiOldbDataPointAsyncTest, testReadValue) | |
| TEST_F (CiiOldbDataPointAsyncTest, testWriteValueSimple) | |
| TEST_F (CircularBufferConcurrentTest, testObjectSize) | |
| TEST_F (CircularBufferConcurrentTest, testInitialValues) | |
| TEST_F (CircularBufferConcurrentTest, testClear) | |
| TEST_F (CircularBufferConcurrentTest, testPushOverwrite) | |
| TEST_F (CircularBufferConcurrentTest, testNonWaitingPoll) | |
| TEST_F (CircularBufferConcurrentTest, testBufferLockExternal) | |
| TEST_F (CircularBufferConcurrentTest, testMultipleThreads) | |
| TEST_F (CircularBufferConcurrentTest, testDiscardListener) | |
| TEST_F (CircularBufferConcurrentTest, testNonCopyableData) | |
| hlcc::oldbmux::test::TEST_F | ( | CiiOldbDataPointAsyncTest | , |
| testReadValue | |||
| ) |
Read the DP's value. This is a simple synchronous call, delegated to the CII DP class. It mostly verifies that connection to the OLDB / DP is working.
| hlcc::oldbmux::test::TEST_F | ( | CiiOldbDataPointAsyncTest | , |
| testWriteValueSimple | |||
| ) |
Write the DP's value twice.
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testBufferLockExternal | |||
| ) |
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testClear | |||
| ) |
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testDiscardListener | |||
| ) |
Similar to "testPushOverwrite", but with a discard listener that allows validating that the first element gets discarded and the listener is notified.
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testInitialValues | |||
| ) |
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testMultipleThreads | |||
| ) |
Concurrent use with 2 pushing threads and 2 polling threads (1 blocking, 1 not blocking).
Note that pushing is potentially lossy because of the nature of the circular buffer. We continue pushing values into the buffer until a specified number of values has been read from the buffer.
This test is not asserting anything about lock fairness (anyway not guaranteed by the standard). It also does not test performance. We notice though that there are many more push operations than poll. Not clear if this has to do with the mutex/lock/condition, or with the underlying boost circularBuffer.
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testNonCopyableData | |||
| ) |
We need to use the circular buffer with non-copyable data (that contains a boost::future).
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testNonWaitingPoll | |||
| ) |
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testObjectSize | |||
| ) |
| hlcc::oldbmux::test::TEST_F | ( | CircularBufferConcurrentTest | , |
| testPushOverwrite | |||
| ) |