mediastreamer2_tester_windows.h 1.2 KB
Newer Older
Ghislain MARY's avatar
Ghislain MARY committed
1 2 3 4 5 6 7 8 9 10
#pragma once

#include "mediastreamer2/mscommon.h"
#include "mediastreamer2_tester.h"

namespace ms2_tester_runtime_component
{
	public interface class OutputTraceListener
	{
	public:
Ghislain MARY's avatar
Ghislain MARY committed
11
		void outputTrace(Platform::String^ lev, Platform::String^ msg);
Ghislain MARY's avatar
Ghislain MARY committed
12 13 14 15 16 17 18 19 20 21
	};

    public ref class MS2Tester sealed
    {
    public:
		void setOutputTraceListener(OutputTraceListener^ traceListener);
		unsigned int nbTestSuites();
		unsigned int nbTests(Platform::String^ suiteName);
		Platform::String^ testSuiteName(int index);
		Platform::String^ testName(Platform::String^ suiteName, int testIndex);
Ghislain MARY's avatar
Ghislain MARY committed
22 23
		bool run(Platform::String^ suiteName, Platform::String^ caseName, Platform::Boolean verbose);
		void runAllToXml();
24 25
		void startVideoStream(Platform::Object^ CaptureElement, Platform::Object^ MediaElement);
		void stopVideoStream();
Ghislain MARY's avatar
Ghislain MARY committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

		static property MS2Tester^ Instance
		{
			MS2Tester^ get() { return _instance; }
		}
		property Windows::Foundation::IAsyncAction^ AsyncAction
		{
			Windows::Foundation::IAsyncAction^ get() { return _asyncAction; }
		}
	private:
		MS2Tester();
		~MS2Tester();
		void init(bool verbose);

		static MS2Tester^ _instance;
		Windows::Foundation::IAsyncAction^ _asyncAction;
42
		VideoStream *_videoStream;
Ghislain MARY's avatar
Ghislain MARY committed
43
	};
Ghislain MARY's avatar
Ghislain MARY committed
44
}