1
package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
5
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
6
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
7
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
10
public abstract class TestParams {
12
/* Path to test traces */
13
private static final String testTracePath1 = "testfiles/kernel"; //$NON-NLS-1$
14
private static CtfTmfTrace testTrace1 = null;
16
private static final File emptyFile = new File(""); //$NON-NLS-1$
17
private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
19
public static File getEmptyFile() {
23
public static CtfTmfTrace getEmptyTrace() {
27
public static String getPath(){
28
return testTracePath1;
31
public synchronized static CtfTmfTrace createTrace() throws TmfTraceException {
32
if (testTrace1 == null) {
33
testTrace1 = new CtfTmfTrace();
34
testTrace1.initTrace(null, testTracePath1, CtfTmfEvent.class);