Skip to content

Commit 4516aa6

Browse files
andrey-qlogicJesseLovelace
authored andcommitted
---
yaml --- r: 15603 b: refs/heads/autosynth-datastore c: 1ee33dc h: refs/heads/master i: 15601: 69a0836 15599: 8d26090
1 parent db30098 commit 4516aa6

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • branches/autosynth-datastore/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
@@ -129,7 +129,7 @@ refs/heads/autosynth-bigquerystorage: 14ab055598b943ae3f33f484e9fb1653355d08e7
129129
refs/heads/autosynth-bigtable: 2fbcb15847e0e89e79d6dc07420e28d7dfcea894
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131131
refs/heads/autosynth-containeranalysis: 039ca5b8db725c76c16a965ff26b2774322b8ef8
132-
refs/heads/autosynth-datastore: 0d5cbc14c4374f94d5d49dbf5efe89d26ee5b050
132+
refs/heads/autosynth-datastore: 1ee33dce9c137938be0650f065717700d78f9bf6
133133
refs/heads/autosynth-dialogflow: ebdd13c445b9674ff9ad4601f78d7ecd6f9c3660
134134
refs/heads/autosynth-errorreporting: 3d0566d6bebcc187f148bbed463b5a8e75b1edf6
135135
refs/heads/autosynth-firestore: 92b27fbc8855c9902168695abb0a8f1f433b750b

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