tmf.tests: Add tests for TmfStateSystemModule#isQueryable(long)
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / event / TmfSyncEventStub.java
CommitLineData
e73a4ba5 1/*******************************************************************************
ed902a2b 2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
e73a4ba5
GB
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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
8 *
9 * Contributors:
10 * Geneviève Bastien - Initial implementation
11 *******************************************************************************/
12
2bdf0193 13package org.eclipse.tracecompass.tmf.tests.stubs.event;
e73a4ba5 14
fafdd006 15import org.eclipse.jdt.annotation.NonNull;
2bdf0193
AM
16import org.eclipse.tracecompass.tmf.core.event.TmfEvent;
17import org.eclipse.tracecompass.tmf.core.event.TmfEventField;
18import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
0c7471fb 19import org.eclipse.tracecompass.tmf.core.trace.ITmfContext;
2bdf0193 20import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
e73a4ba5
GB
21
22/**
23 * Event stub used by the synchronization tests
24 *
25 * @author Geneviève Bastien
26 */
27public class TmfSyncEventStub extends TmfEvent {
28
fafdd006 29 private static final @NonNull String stub = "stub"; //$NON-NLS-1$
e73a4ba5
GB
30
31 /**
32 * Constructor
33 *
34 * @param trace
35 * The trace of this event
36 * @param timestamp
37 * The timestamp
38 */
39 public TmfSyncEventStub(final ITmfTrace trace, final ITmfTimestamp timestamp) {
40 super(trace,
0c7471fb 41 ITmfContext.UNKNOWN_RANK,
e73a4ba5 42 timestamp,
e73a4ba5 43 new TmfEventTypeStub(),
e1de2fd4 44 new TmfEventField(stub, stub, null));
e73a4ba5
GB
45 }
46}
This page took 0.073845 seconds and 5 git commands to generate.