void MockFileSource::Impl::replyWithSuccessWithDelay(FileRequest* req, Resource resource, Callback callback) {
    if (resource.url.find(match_) == std::string::npos) {
        replyWithSuccess(resource, callback);
        return;
    }

    pendingRequests_.emplace(req, std::make_pair(resource, callback));
    requestEnqueuedCallback_();
}
void MockFileSource::Impl::replyWithSuccessWithDelay(Request* req) {
    if (req->resource.url.find(match_) == std::string::npos) {
        replyWithSuccess(req);
        return;
    }

    pendingRequests_.push_back(req);
    requestEnqueuedCallback_();
}