Skip to content

Commit 850bf04

Browse files
andrey-qlogicJesseLovelace
authored andcommitted
---
yaml --- r: 17449 b: refs/heads/autosynth-tasks c: 1ee33dc h: refs/heads/master i: 17447: fb4b171
1 parent dcb20a2 commit 850bf04

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • branches/autosynth-tasks/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
@@ -142,7 +142,7 @@ refs/heads/autosynth-scheduler: d97f8743ba965c7d5e492c8dc1f51d023104e260
142142
refs/heads/autosynth-securitycenter: 8e95447ccb176c3648880ee0cb926cd1f4065156
143143
refs/heads/autosynth-spanner: 9bff86d057df31e04c76d72865e8e073ac5794fb
144144
refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
145-
refs/heads/autosynth-tasks: 0d5cbc14c4374f94d5d49dbf5efe89d26ee5b050
145+
refs/heads/autosynth-tasks: 1ee33dce9c137938be0650f065717700d78f9bf6
146146
refs/heads/autosynth-texttospeech: 0e26ec9b0ed5bbedc038dea32bbb44bae0883668
147147
refs/heads/autosynth-trace: 80c58aa2fb54b0a9c6876f2c21aa8d19cf55962e
148148
refs/heads/autosynth-websecurityscanner: d4febbffb6c648b74faec62fe90e20adadc9a7d3

branches/autosynth-tasks/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)