Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java')
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java
new file mode 100644
index 0000000000..f36ead13df
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.lttng.core.tests/src/org/eclipse/linuxtools/lttng/core/tests/control/LTTngSyntheticEventProviderTextTest.java
@@ -0,0 +1,76 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.linuxtools.lttng.core.tests.control;
+
+
+
+import org.eclipse.linuxtools.lttng.core.tests.LttngTestPreparation;
+
+public class LTTngSyntheticEventProviderTextTest extends LttngTestPreparation {
+
+ // ========================================================================
+ // Tests
+ // ========================================================================
+ /**
+ *
+ */
+ public void testPlainDataRequest() {
+// // prepare
+// init();
+// TmfExperiment<LttngEvent> experiment = prepareTextExperimentToTest();
+// TmfEventRequest<LttngEvent> request = prepareEventRequest(
+// LttngEvent.class, 0, 31);
+//
+// // execute
+// experiment.sendRequest(request);
+// try {
+// request.waitForCompletion();
+// } catch (InterruptedException e) {
+// e.printStackTrace();
+// }
+//
+// // finish
+// assertEquals("Unexpected eventCount", 15316, feventCount);
+// boolean expected = true;
+// assertEquals("Events received out of expected order", expected,
+// validSequence);
+ }
+
+ /**
+ *
+ */
+ public void testSyntheticEventRequest() {
+// init();
+// // make sure a synthetic event provider exists and it's registered
+// LttngSyntheticEventProvider synProvider = LttngCoreProviderFactory
+// .getEventProvider();
+//
+// // make sure a TmfExperiment instance is registered as provider and
+// // selected as current
+// prepareTextExperimentToTest();
+//
+// // prepare synthetic event request
+// TmfEventRequest<LttngSyntheticEvent> request = prepareEventRequest(
+// LttngSyntheticEvent.class, 0, 31);
+//
+// // execute
+// synProvider.sendRequest(request);
+// try {
+// request.waitForCompletion();
+// } catch (InterruptedException e) {
+// e.printStackTrace();
+// }
+//
+// // finish
+// assertEquals("Unexpected eventCount", 15316, feventCount);
+ }
+}

Back to the top