Introduce TmfLegacyExperiment
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / TestParams.java
CommitLineData
a3fc8213
AM
1package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
2
3import java.io.File;
a3fc8213
AM
4
5import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
6import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
b4f71e4a 7import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
a3fc8213
AM
8
9
10public abstract class TestParams {
25e48683 11
a3fc8213 12 /* Path to test traces */
81c8e6f7 13 private static final String testTracePath1 = "testfiles/kernel"; //$NON-NLS-1$
a3fc8213 14 private static CtfTmfTrace testTrace1 = null;
25e48683 15
a3fc8213
AM
16 private static final File emptyFile = new File(""); //$NON-NLS-1$
17 private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
8636b448 18
a3fc8213
AM
19 public static File getEmptyFile() {
20 return emptyFile;
21 }
25e48683 22
a3fc8213
AM
23 public static CtfTmfTrace getEmptyTrace() {
24 return emptyTrace;
25 }
25e48683 26
81c8e6f7
MK
27 public static String getPath(){
28 return testTracePath1;
29 }
30
b4f71e4a 31 public static CtfTmfTrace createTrace() throws TmfTraceException {
a3fc8213
AM
32 if ( testTrace1 == null ) {
33 testTrace1 = new CtfTmfTrace();
25e48683 34 testTrace1.initTrace(null, testTracePath1, CtfTmfEvent.class);
a3fc8213
AM
35 }
36 return testTrace1;
37 }
38}
This page took 0.025779 seconds and 5 git commands to generate.