DumpRenderTree should be getting the next test path and sending results to a singleton that speaks the Layout Test Protocol. The singleton should be able to work with standard file descriptors or a single socket to allow layout test scripts to talk to iOS (over a wrapper on this host) without the FIFO hack. Some possible abstract methods: - nextPath() // reads from stdin or socket - addRenderTree(...) // saves to ivar - addImage(...) // saves to ivar - addAudio(...) // saves to ivar - addErrorText(...) // saves to ivar - done() // sends results over stdout/stderr or socket