belle_sip_tester_windows.h 1.14 KB
Newer Older
1 2 3 4 5
#pragma once

#include "belle-sip/belle-sip.h"
#include "belle_sip_tester.h"

6
namespace belle_sip_tester_runtime
7 8 9 10
{
	public interface class OutputTraceListener
	{
	public:
11
		void outputTrace(Platform::String^ lev, Platform::String^ msg);
12 13 14 15 16 17 18 19 20 21
	};

    public ref class BelleSipTester 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);
22
		void initialize(Windows::Storage::StorageFolder^ writableDirectory, Platform::Boolean ui);
23
		bool run(Platform::String^ suiteName, Platform::String^ caseName, Platform::Boolean verbose);
24
		void runAllToXml();
25

26 27 28 29
		static property BelleSipTester^ Instance
		{
			BelleSipTester^ get() { return _instance; }
		}
30 31
		property Windows::Foundation::IAsyncAction^ AsyncAction
		{
32
			Windows::Foundation::IAsyncAction^ get() { return _asyncAction; }
33 34
		}
	private:
35 36 37 38 39
		BelleSipTester();
		~BelleSipTester();

		static BelleSipTester^ _instance;
		Windows::Foundation::IAsyncAction^ _asyncAction;
40
	};
41
}