1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.tests
.ctfadaptor
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfEvent
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfTrace
;
19 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.TmfTraceException
;
22 * This is the set up for the trace files to be used with the ctfAdaptor tests.
24 abstract class TestParams
{
26 /* Path to test traces */
27 private static final String testTracePath1
= "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel"; //$NON-NLS-1$
28 private static CtfTmfTrace testTrace1
= null;
30 private static final File emptyFile
= new File(""); //$NON-NLS-1$
31 private static CtfTmfTrace emptyTrace
= new CtfTmfTrace();
33 public static File
getEmptyFile() {
37 public static CtfTmfTrace
getEmptyTrace() {
41 public static String
getPath(){
42 return testTracePath1
;
45 public synchronized static CtfTmfTrace
createTrace() throws TmfTraceException
{
46 if (testTrace1
== null) {
47 testTrace1
= new CtfTmfTrace();
48 testTrace1
.initTrace(null, testTracePath1
, CtfTmfEvent
.class);
This page took 0.031809 seconds and 5 git commands to generate.