@wuhengzhi good improvement.

Having a common interface for test utitliy sounds good. It would be better if abstracting XWalkRuntimeClient type into a template, so that XWalkRuntimeView could re-use this code.

It is fine to do that in another PR. I think @yongsheng will do this refactor.