// Most of the tests in this file were written when task event // notification was done synchronously in TaskRunner. Reproduce that // behavior here for simplicity. void notify(SchedulableTask task, Schedule.EventType eventType) { if (doImmediateNotify) { task.callback.taskEvent(task, eventType); } else { super.notify(task, eventType); } }
void removeTask(StepTask task) { removedTasks.add(task); super.removeTask(task); }
void removeChunk(Schedule.Chunk chunk) { removedChunks.add(chunk); super.removeChunk(chunk); }