File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767
6868[ issue-2567 ] : https://github.com/googleapis/google-cloud-cpp/issues/2567
6969
70+ ### Storage:
71+
72+ ** BREAKING CHANGES** :
73+ * The usage of ` google::cloud::internal::ObjectReadSource ` has changed. If your
74+ tests mock how the library uses this class you may need to update your tests.
75+ We updated the [ mocking examples] [ storage-mocking-link ] to guide you in
76+ changing the tests.
77+
78+ [ storage-mocking-link ] : https://googleapis.dev/cpp/google-cloud-storage/latest/storage-mocking.html
79+
7080### Other:
7181
7282** We have removed the ` super/ ` directory:** ` google-cloud-cpp ` remains usable in
Original file line number Diff line number Diff line change 77It is possible to mock GCS bucket read and write using gmock framework, this is specially ueeful
88for developer using GCS C++ client library.
99
10- ### Mocking Successful call of ` ReadObject`
10+ ### Mocking Successful call of ReadObject()
1111
1212Mocking of ReadObject can be achieved by mocking `ObjectReadSource`. The following code snippet
1313explains this
1414
1515@snippet storage_client_mock_samples.cc mock successful readobject
1616
17- ### Mocking Failed call of ` ReadObject`
17+ ### Mocking Failed call of ReadObject()
1818
1919Mocking of ReadObject can be achieved by mocking `ObjectReadSource`. The following code snippet
2020explains this
2121
2222@snippet storage_client_mock_samples.cc mock failed readobject
2323
24- ### Mocking Successful call of ` WriteObject`
24+ ### Mocking Successful call of WriteObject()
2525
2626Mocking of ReadObject can be achieved by mocking `ObjectWriteStreambuf`. The following code snippet
2727explains this
2828
2929@snippet storage_client_mock_samples.cc mock successful writeobject
3030
31- ### Mocking Failed call of ` WriteObject`
31+ ### Mocking Failed call of WriteObject()
3232
3333Mocking of ReadObject can be achieved by mocking `ObjectWriteStreambuf`. The following code snippet
3434explains this
You can’t perform that action at this time.
0 commit comments