Class MockEdgeNetworkConnection (2.20.0-rc)

A class to mock EdgeNetworkConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type EdgeNetworkClient. To do so, construct an object of type EdgeNetworkClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See Also

This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
Options

virtual InitializeZone(google::cloud::edgenetwork::v1::InitializeZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::InitializeZoneRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::InitializeZoneResponse >

virtual ListZones(google::cloud::edgenetwork::v1::ListZonesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListZonesRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::Zone >

virtual GetZone(google::cloud::edgenetwork::v1::GetZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetZoneRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::Zone >

virtual ListNetworks(google::cloud::edgenetwork::v1::ListNetworksRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListNetworksRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::Network >

virtual GetNetwork(google::cloud::edgenetwork::v1::GetNetworkRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetNetworkRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::Network >

virtual DiagnoseNetwork(google::cloud::edgenetwork::v1::DiagnoseNetworkRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DiagnoseNetworkRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::DiagnoseNetworkResponse >

virtual CreateNetwork(google::cloud::edgenetwork::v1::CreateNetworkRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::CreateNetworkRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::Network > >

virtual DeleteNetwork(google::cloud::edgenetwork::v1::DeleteNetworkRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DeleteNetworkRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::OperationMetadata > >

virtual ListSubnets(google::cloud::edgenetwork::v1::ListSubnetsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListSubnetsRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::Subnet >

virtual GetSubnet(google::cloud::edgenetwork::v1::GetSubnetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetSubnetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::Subnet >

virtual CreateSubnet(google::cloud::edgenetwork::v1::CreateSubnetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::CreateSubnetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::Subnet > >

virtual UpdateSubnet(google::cloud::edgenetwork::v1::UpdateSubnetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::UpdateSubnetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::Subnet > >

virtual DeleteSubnet(google::cloud::edgenetwork::v1::DeleteSubnetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DeleteSubnetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::OperationMetadata > >

virtual ListInterconnects(google::cloud::edgenetwork::v1::ListInterconnectsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListInterconnectsRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::Interconnect >

virtual GetInterconnect(google::cloud::edgenetwork::v1::GetInterconnectRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetInterconnectRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::Interconnect >

virtual DiagnoseInterconnect(google::cloud::edgenetwork::v1::DiagnoseInterconnectRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DiagnoseInterconnectRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::DiagnoseInterconnectResponse >

virtual ListInterconnectAttachments(google::cloud::edgenetwork::v1::ListInterconnectAttachmentsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListInterconnectAttachmentsRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::InterconnectAttachment >

virtual GetInterconnectAttachment(google::cloud::edgenetwork::v1::GetInterconnectAttachmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetInterconnectAttachmentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::InterconnectAttachment >

virtual CreateInterconnectAttachment(google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::InterconnectAttachment > >

virtual DeleteInterconnectAttachment(google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::OperationMetadata > >

virtual ListRouters(google::cloud::edgenetwork::v1::ListRoutersRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::ListRoutersRequest
Returns
TypeDescription
StreamRange< google::cloud::edgenetwork::v1::Router >

virtual GetRouter(google::cloud::edgenetwork::v1::GetRouterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::GetRouterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::Router >

virtual DiagnoseRouter(google::cloud::edgenetwork::v1::DiagnoseRouterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DiagnoseRouterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::edgenetwork::v1::DiagnoseRouterResponse >

virtual CreateRouter(google::cloud::edgenetwork::v1::CreateRouterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::CreateRouterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::Router > >

virtual UpdateRouter(google::cloud::edgenetwork::v1::UpdateRouterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::UpdateRouterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::Router > >

virtual DeleteRouter(google::cloud::edgenetwork::v1::DeleteRouterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::edgenetwork::v1::DeleteRouterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::edgenetwork::v1::OperationMetadata > >