Skip to content

Commit 17e877b

Browse files
committed
doc(storage): warn customers about changes for mocks
1 parent 25c957c commit 17e877b

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@
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

google/cloud/storage/doc/storage-mocking.dox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
It is possible to mock GCS bucket read and write using gmock framework, this is specially ueeful
88
for developer using GCS C++ client library.
99

10-
### Mocking Successful call of `ReadObject`
10+
### Mocking Successful call of ReadObject()
1111

1212
Mocking of ReadObject can be achieved by mocking `ObjectReadSource`. The following code snippet
1313
explains 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

1919
Mocking of ReadObject can be achieved by mocking `ObjectReadSource`. The following code snippet
2020
explains 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

2626
Mocking of ReadObject can be achieved by mocking `ObjectWriteStreambuf`. The following code snippet
2727
explains 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

3333
Mocking of ReadObject can be achieved by mocking `ObjectWriteStreambuf`. The following code snippet
3434
explains this

0 commit comments

Comments
 (0)