timeline = new MockTimeline(new MockFileHistory(context),
new FileHistory.View(context.getResources()).timelineView, context);
FileHistoryApi api = new FileHistoryApi(context, null, timeline, null);
timeline.setApi(api);
RevisionImpl revision = RevisionImpl.make();
revision.setNodeId("12345");
revision.setTimestamp(Long.toString(new Date().getTime()));
revision.setRevisionType(RevisionType.AUTO_SAVE);
revision.setHasUnresolvedConflicts(false);
revision.setIsFinalResolution(false);
revision.setPreviousNodesSkipped(0);
// Add 4 fake timeline nodes
TimelineNode node = new TimelineNode(
new TimelineNode.View(context.getResources()), 0, revision, timeline);
timeline.nodes.add(node);