[Interest] Fwd: Is there a way to mock the QNAM?
Alejandro Exojo
suy at badopi.org
Sat Sep 7 11:58:18 CEST 2013
El Martes, 3 de septiembre de 2013, André Somers escribió:
> It's an example of good API design, if you ask me: the public API to use
> is not the same as the (protected) API to extend the class. These are
> different tasks, and they should have a different API.
I'm not the original poster, but, could you guys elaborate more on how to do
this?
In my case is possibly different, since we use either a socket or a serial port
to implement some protocol through it. Unless we override in the test the
function that instantiates suck socket/serial port to provide a "mock"
QIODevice, I don't see how to do it.
--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
More information about the Interest
mailing list