Skip to content

Commit 4f2c3b5

Browse files
andrey-qlogicJesseLovelace
authored andcommitted
---
yaml --- r: 14681 b: refs/heads/autosynth-asset c: 1ee33dc h: refs/heads/master i: 14679: 634a79a
1 parent 52c5f6d commit 4f2c3b5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • branches/autosynth-asset/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ refs/heads/autosynth-vision: b8e47d76578b5f150ef530072ea7e485e2b02ca0
122122
refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131
123123
refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
124124
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
125-
refs/heads/autosynth-asset: 0d5cbc14c4374f94d5d49dbf5efe89d26ee5b050
125+
refs/heads/autosynth-asset: 1ee33dce9c137938be0650f065717700d78f9bf6
126126
refs/heads/autosynth-automl: d4315b3596bac160e3439432c54435f44b09953e
127127
refs/heads/autosynth-bigquerydatatransfer: 2a9f3938237f85a8919602d74011326580ff387f
128128
refs/heads/autosynth-bigquerystorage: 99aee05df348f39d98b6fb23c292006f1d2a6c28

branches/autosynth-asset/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing/FakeStorageRpc.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,13 @@ public Tuple<String, Iterable<StorageObject>> list(String bucket, Map<Option, ?>
123123
throws StorageException {
124124
String delimiter = null;
125125
String preprefix = "";
126+
String pageToken = null;
126127
long maxResults = Long.MAX_VALUE;
127128
for (Map.Entry<Option, ?> e : options.entrySet()) {
128129
switch (e.getKey()) {
130+
case PAGE_TOKEN:
131+
pageToken = (String) e.getValue();
132+
break;
129133
case PREFIX:
130134
preprefix = (String) e.getValue();
131135
if (preprefix.startsWith("/")) {
@@ -173,7 +177,7 @@ public Tuple<String, Iterable<StorageObject>> list(String bucket, Map<Option, ?>
173177
// again).
174178
// The type cast seems to be necessary to help Java's typesystem remember that collections are
175179
// iterable.
176-
return Tuple.of(null, (Iterable<StorageObject>) values);
180+
return Tuple.of(pageToken, (Iterable<StorageObject>) values);
177181
}
178182

179183
/** Returns the requested bucket or {@code null} if not found. */

0 commit comments

Comments
 (0)