blob: 666e0d01bc3b45e331d761ad3bc66102ffb81221 [file] [log] [blame]
// Copyright 2011 Google Inc. All rights reserved.
package com.android.volley.utils;
import com.android.volley.ExecutorDelivery;
import java.util.concurrent.Executor;
/**
* A ResponseDelivery for testing that immediately delivers responses
* instead of posting back to the main thread.
*/
public class ImmediateResponseDelivery extends ExecutorDelivery {
public ImmediateResponseDelivery() {
super(new Executor() {
@Override
public void execute(Runnable command) {
command.run();
}
});
}
}