mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Track frameCount for tests now
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
5d83d98e96
commit
440d89750a
@ -34,6 +34,7 @@ import org.eclipse.jetty.websocket.api.extensions.OutgoingFrames;
|
||||
public class SaneFrameOrderingAssertion implements OutgoingFrames
|
||||
{
|
||||
boolean priorDataFrame = false;
|
||||
public int frameCount = 0;
|
||||
|
||||
@Override
|
||||
public void outgoingFrame(Frame frame, WriteCallback callback, BatchMode batchMode)
|
||||
@ -63,11 +64,13 @@ public class SaneFrameOrderingAssertion implements OutgoingFrames
|
||||
break;
|
||||
}
|
||||
|
||||
if (OpCode.isDataFrame(frame.getOpCode()))
|
||||
if (OpCode.isDataFrame(opcode))
|
||||
{
|
||||
priorDataFrame = !frame.isFin();
|
||||
}
|
||||
|
||||
frameCount++;
|
||||
|
||||
if (callback != null)
|
||||
callback.writeSuccess();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user