Singularity/Library/PackageCache/com.unity.test-framework@1..../UnityEditor.TestRunner/Api/Analytics/AnalyticsTestCallback.cs

32 lines
721 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using System;
namespace UnityEditor.TestTools.TestRunner.Api.Analytics
{
internal class AnalyticsTestCallback : ICallbacks
{
private Action<ITestResultAdaptor> _runFinishedCallback;
public AnalyticsTestCallback(Action<ITestResultAdaptor> runFinishedCallback)
{
_runFinishedCallback = runFinishedCallback;
}
public void RunStarted(ITestAdaptor testsToRun)
{
}
public void RunFinished(ITestResultAdaptor result)
{
_runFinishedCallback(result);
}
public void TestStarted(ITestAdaptor test)
{
}
public void TestFinished(ITestResultAdaptor result)
{
}
}
}