Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::pubsub_mocks::MockSchemaServiceConnection Class Reference

A class to mock SchemaServiceConnection. More...

#include <google/cloud/pubsub/mocks/mock_schema_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, CreateSchema,(google::pubsub::v1::CreateSchemaRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, GetSchema,(google::pubsub::v1::GetSchemaRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::pubsub::v1::Schema >, ListSchemas,(google::pubsub::v1::ListSchemasRequest request),(override))
 
 MOCK_METHOD (StreamRange< google::pubsub::v1::Schema >, ListSchemaRevisions,(google::pubsub::v1::ListSchemaRevisionsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, CommitSchema,(google::pubsub::v1::CommitSchemaRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, RollbackSchema,(google::pubsub::v1::RollbackSchemaRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, DeleteSchemaRevision,(google::pubsub::v1::DeleteSchemaRevisionRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteSchema,(google::pubsub::v1::DeleteSchemaRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::ValidateSchemaResponse >, ValidateSchema,(google::pubsub::v1::ValidateSchemaRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::ValidateMessageResponse >, ValidateMessage,(google::pubsub::v1::ValidateMessageRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::pubsub::v1::Schema > CreateSchema (google::pubsub::v1::CreateSchemaRequest const &request)
 
virtual StatusOr< google::pubsub::v1::Schema > GetSchema (google::pubsub::v1::GetSchemaRequest const &request)
 
virtual StreamRange< google::pubsub::v1::Schema > ListSchemas (google::pubsub::v1::ListSchemasRequest request)
 
virtual StreamRange< google::pubsub::v1::Schema > ListSchemaRevisions (google::pubsub::v1::ListSchemaRevisionsRequest request)
 
virtual StatusOr< google::pubsub::v1::Schema > CommitSchema (google::pubsub::v1::CommitSchemaRequest const &request)
 
virtual StatusOr< google::pubsub::v1::Schema > RollbackSchema (google::pubsub::v1::RollbackSchemaRequest const &request)
 
virtual StatusOr< google::pubsub::v1::Schema > DeleteSchemaRevision (google::pubsub::v1::DeleteSchemaRevisionRequest const &request)
 
virtual Status DeleteSchema (google::pubsub::v1::DeleteSchemaRequest const &request)
 
virtual StatusOr< google::pubsub::v1::ValidateSchemaResponse > ValidateSchema (google::pubsub::v1::ValidateSchemaRequest const &request)
 
virtual StatusOr< google::pubsub::v1::ValidateMessageResponse > ValidateMessage (google::pubsub::v1::ValidateMessageRequest const &request)
 

Detailed Description

A class to mock SchemaServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type SchemaServiceClient. To do so, construct an object of type SchemaServiceClient 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.

Member Function Documentation

◆ CommitSchema()

virtual StatusOr< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::CommitSchema ( google::pubsub::v1::CommitSchemaRequest const &  request)
virtualinherited

◆ CreateSchema()

virtual StatusOr< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::CreateSchema ( google::pubsub::v1::CreateSchemaRequest const &  request)
virtualinherited

◆ DeleteSchema()

virtual Status google::cloud::pubsub::SchemaServiceConnection::DeleteSchema ( google::pubsub::v1::DeleteSchemaRequest const &  request)
virtualinherited

◆ DeleteSchemaRevision()

virtual StatusOr< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::DeleteSchemaRevision ( google::pubsub::v1::DeleteSchemaRevisionRequest const &  request)
virtualinherited

◆ GetSchema()

virtual StatusOr< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::GetSchema ( google::pubsub::v1::GetSchemaRequest const &  request)
virtualinherited

◆ ListSchemaRevisions()

virtual StreamRange< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::ListSchemaRevisions ( google::pubsub::v1::ListSchemaRevisionsRequest  request)
virtualinherited

◆ ListSchemas()

virtual StreamRange< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::ListSchemas ( google::pubsub::v1::ListSchemasRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( Status  ,
DeleteSchema  ,
(google::pubsub::v1::DeleteSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
CommitSchema  ,
(google::pubsub::v1::CommitSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
CreateSchema  ,
(google::pubsub::v1::CreateSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
DeleteSchemaRevision  ,
(google::pubsub::v1::DeleteSchemaRevisionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
GetSchema  ,
(google::pubsub::v1::GetSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
RollbackSchema  ,
(google::pubsub::v1::RollbackSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::ValidateMessageResponse >  ,
ValidateMessage  ,
(google::pubsub::v1::ValidateMessageRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::ValidateSchemaResponse >  ,
ValidateSchema  ,
(google::pubsub::v1::ValidateSchemaRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StreamRange< google::pubsub::v1::Schema >  ,
ListSchemaRevisions  ,
(google::pubsub::v1::ListSchemaRevisionsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [11/11]

google::cloud::pubsub_mocks::MockSchemaServiceConnection::MOCK_METHOD ( StreamRange< google::pubsub::v1::Schema >  ,
ListSchemas  ,
(google::pubsub::v1::ListSchemasRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::pubsub::SchemaServiceConnection::options ( )
inlinevirtualinherited

◆ RollbackSchema()

virtual StatusOr< google::pubsub::v1::Schema > google::cloud::pubsub::SchemaServiceConnection::RollbackSchema ( google::pubsub::v1::RollbackSchemaRequest const &  request)
virtualinherited

◆ ValidateMessage()

virtual StatusOr< google::pubsub::v1::ValidateMessageResponse > google::cloud::pubsub::SchemaServiceConnection::ValidateMessage ( google::pubsub::v1::ValidateMessageRequest const &  request)
virtualinherited

◆ ValidateSchema()

virtual StatusOr< google::pubsub::v1::ValidateSchemaResponse > google::cloud::pubsub::SchemaServiceConnection::ValidateSchema ( google::pubsub::v1::ValidateSchemaRequest const &  request)
virtualinherited