|
2 | 2 |
|
3 | 3 |
|
4 | 4 | import com.google.common.eventbus.EventBus; |
| 5 | +import edu.wpi.grip.core.FileManager; |
5 | 6 | import edu.wpi.grip.core.operations.network.MapNetworkPublisherFactory; |
6 | 7 | import edu.wpi.grip.core.operations.network.MockMapNetworkPublisher; |
7 | 8 | import edu.wpi.grip.core.operations.network.ros.JavaToMessageConverter; |
|
11 | 12 | import edu.wpi.grip.core.sockets.MockInputSocketFactory; |
12 | 13 | import edu.wpi.grip.core.sockets.MockOutputSocketFactory; |
13 | 14 | import edu.wpi.grip.core.sockets.OutputSocket; |
| 15 | +import edu.wpi.grip.core.util.MockFileManager; |
14 | 16 |
|
15 | 17 | import java.util.Optional; |
16 | 18 |
|
@@ -38,17 +40,16 @@ public void close() { |
38 | 40 | } |
39 | 41 |
|
40 | 42 | public static Operations create(EventBus eventBus) { |
41 | | - |
42 | | - return create(eventBus, MockMapNetworkPublisher::new, MockROSMessagePublisher::new, |
43 | | - new MockInputSocketFactory(eventBus), new MockOutputSocketFactory(eventBus)); |
| 43 | + return create(eventBus, MockMapNetworkPublisher::new, MockROSMessagePublisher::new, new MockFileManager(), new MockInputSocketFactory(eventBus), new MockOutputSocketFactory(eventBus)); |
44 | 44 | } |
45 | 45 |
|
46 | 46 | public static Operations create(EventBus eventBus, |
47 | 47 | MapNetworkPublisherFactory mapFactory, |
48 | 48 | ROSNetworkPublisherFactory rosFactory, |
| 49 | + FileManager fileManager, |
49 | 50 | InputSocket.Factory isf, |
50 | 51 | OutputSocket.Factory osf) { |
51 | | - return new Operations(eventBus, mapFactory, rosFactory, isf, osf); |
| 52 | + return new Operations(eventBus, mapFactory, rosFactory, fileManager, isf, osf); |
52 | 53 | } |
53 | 54 |
|
54 | 55 | public static CVOperations createCV(EventBus eventBus) { |
|
0 commit comments