Skip to content

Commit 4e8752f

Browse files
andrey-qlogicJesseLovelace
authored andcommitted
---
yaml --- r: 12799 b: refs/heads/autosynth-monitoring c: 1ee33dc h: refs/heads/master i: 12797: c2af0d6 12795: c4da4a4 12791: 0c69976 12783: 2a9364c 12767: 90898b3 12735: 9e8a28b 12671: 25f38ac 12543: 5414ccd 12287: 9e7764f
1 parent 381a7ed commit 4e8752f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • branches/autosynth-monitoring/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
@@ -115,7 +115,7 @@ refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115115
refs/heads/autosynth-compute: 986ec89964354eeecb8d259ddc23c85c75e4df5b
116116
refs/heads/autosynth-container: d0346e84b1f26e3dc10444450a998f357a43bcef
117117
refs/heads/autosynth-dataproc: bc74a8841bc1693d7945d991d15979df550b1fd1
118-
refs/heads/autosynth-monitoring: 0d5cbc14c4374f94d5d49dbf5efe89d26ee5b050
118+
refs/heads/autosynth-monitoring: 1ee33dce9c137938be0650f065717700d78f9bf6
119119
refs/heads/autosynth-pubsub: 5a23c921229ede711e9fb37341ecd08a6f8ff216
120120
refs/heads/autosynth-video-intelligence: 3e8faeeee2f803271529bd6e89b621c1ca098628
121121
refs/heads/autosynth-vision: d758c43ba2ef4f4f7ad07b722617cb39fe3f29db

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