Google Cloud C++ Client 2.10.1
C++ Client Library for Google Cloud Platform
|
Contains helpers for testing the Google Cloud C++ Client Libraries. More...
Functions | |
Options const & | CurrentOptions () |
Retrieve options used in a client call. More... | |
template<typename T > | |
StreamRange< T > | MakeStreamRange (std::vector< T > values, Status final_status={}) |
Construct a StreamRange<T> for use in tests. More... | |
Contains helpers for testing the Google Cloud C++ Client Libraries.
The symbols defined in this namespace are part of google-cloud-cpp
's public API. Application developers may use them when mocking the client libraries in their own tests.
|
inline |
Retrieve options used in a client call.
This would be used to verify configuration options from within a MockConnection. It provides a way for applications to test the difference between client.Foo(request, options)
and client.Foo(request)
.
StreamRange< T > google::cloud::mocks::MakeStreamRange | ( | std::vector< T > | values, |
Status | final_status = {} |
||
) |
Construct a StreamRange<T>
for use in tests.
values | The successfully returned T values. |
final_status | The final Status of the range. Defaults to an OK Status. |