HintletTestHelper.runTest(rule, test);
}
private static EventRecord createNetworkResponseReceived(String identifier, int sequence, String date,
String expires, String cacheControl) {
NetworkResponseReceivedEventBuilder builder =
new NetworkResponseReceivedEventBuilder(identifier, sequence, sequence);
builder.setResponseFromDiskCache(false).setResponseStatus(200);
if (date != null) {
builder.setResponseHeaderDate(date);
}
if (expires != null) {
builder.setResponseHeaderExpires(expires);
}
if (cacheControl != null) {
builder.setResponseHeaderCacheControl(cacheControl);
}
return builder.getEvent();
}