It is undesirable to have the WebCore/platform/mock source code present in production code (this problem occurs mainly when WebCore is built as a shared object). Let WebCore build a separate WebCoreTesting library which can then be optionally linked by DumpRenderTree and other testing apparatus.