Rationalize ITmfTrace.initTrace()
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / TestParams.java
1 package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
2
3 import java.io.File;
4 import java.io.FileNotFoundException;
5
6 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
7 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
8
9
10 public abstract class TestParams {
11
12 /* Path to test traces */
13 private static final String testTracePath1 = "Tests/traces/trace20m"; //$NON-NLS-1$
14 private static CtfTmfTrace testTrace1 = null;
15
16 private static final File emptyFile = new File(""); //$NON-NLS-1$
17 private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
18
19 private final static int PAGE_SIZE = 1000;
20
21 public static File getEmptyFile() {
22 return emptyFile;
23 }
24
25 public static CtfTmfTrace getEmptyTrace() {
26 return emptyTrace;
27 }
28
29 public static CtfTmfTrace createTrace() throws FileNotFoundException {
30 if ( testTrace1 == null ) {
31 testTrace1 = new CtfTmfTrace();
32 testTrace1.initTrace("test-trace", testTracePath1, CtfTmfEvent.class,PAGE_SIZE); //$NON-NLS-1$
33 }
34 return testTrace1;
35 }
36 }
This page took 0.033073 seconds and 6 git commands to generate.