The goog.testing.messaging.MockPortNetwork Class

goog.testing.messaging.MockPortNetwork(mockControl)

The fake PortNetwork.

mockControl {!goog.testing.MockControl}
The mock control for creating the mock message channels.

.dial(name)

Get the mock port with the given name.

name {string}
The name of the port to get.
returns {!goog.testing.messaging.MockMessageChannel}
The mock port.