I think some of the tests could be made easier to read without much effort.
test_simple_dispatch_thread:
Since there are no expectations you can use a StubDispatchable and clean up the test body a little. Likewise you can move at least the dispatcher and the signal and uint64_t dummy to the fixture.
test_stream_transport:
+ // A valid fd is >= 0, and we know that stdin, stdout, and stderr aren't correct.
I think some of the tests could be made easier to read without much effort.
test_simple_ dispatch_ thread:
Since there are no expectations you can use a StubDispatchable and clean up the test body a little. Likewise you can move at least the dispatcher and the signal and uint64_t dummy to the fixture.
test_stream_ transport:
+ // A valid fd is >= 0, and we know that stdin, stdout, and stderr aren't correct.
fnctl(fd, O_GETFD) is used elsewhere.
+ uint64_t dummy{0xdeadbeef};
Can be moved to fixture or
1084: EQ(sizeof( dummy), write(this- >test_fd, &dummy, sizeof(dummy)));
+ EXPECT_
Perhaps move to fixture. ..write_ to_fd()
1138: + std::this_ thread: :sleep_ for(std: :chrono: :seconds{ 1});
:(
1095: + auto observer = std::make_ shared< NiceMock< MockObserver> >();
Stub