You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
859 B

using System;
namespace UnityEditor.PackageManager.UI.Tests
{
internal class MockOperation : IBaseOperation
{
public event Action<Error> OnOperationError { add { } remove { } }
public event Action OnOperationFinalized { add { } remove { } }
public event Action<string> OnOperationFailure { add { } remove { } }
public bool IsCompleted { get; protected set; }
public bool RequireNetwork { get; set; }
public Error ForceError { protected get; set; } // Allow external component to force an error on the requests (eg: testing)
protected readonly MockOperationFactory Factory;
protected MockOperation(MockOperationFactory factory)
{
RequireNetwork = false;
Factory = factory;
}
public void Cancel()
{
}
}
}