Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,6 @@ public boolean handleResponse(
}
}

@Deprecated
private static class MockExponentialBackOffPolicy extends ExponentialBackOffPolicy {
public MockExponentialBackOffPolicy() {}

@Override
public long getNextBackOffMillis() {
return 0;
}
}

private static class MockTransport extends MockHttpTransport {

final boolean testServerError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;

/**
Expand All @@ -44,19 +40,4 @@ public void testGetDefaultTransport() {
HttpTransport secondCall = Utils.getDefaultTransport();
assertSame(transport, secondCall);
}

public static Map<String, String> parseQuery(String query) throws IOException {
Map<String, String> map = new HashMap<String, String>();
String[] entries = query.split("&");
for (String entry : entries) {
String[] sides = entry.split("=");
if (sides.length != 2) {
throw new IOException("Invalid Query String");
}
String key = URLDecoder.decode(sides[0], "UTF-8");
String value = URLDecoder.decode(sides[1], "UTF-8");
map.put(key, value);
}
return map;
}
}