mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
Make TriggerSuccess(filename)
protected and expose in test instead
This commit is contained in:
parent
ccef50e2a2
commit
b6a37c1c15
@ -166,6 +166,7 @@ namespace osu.Game.Tests.Online
|
||||
private class TestDownloadRequest : ArchiveDownloadRequest<BeatmapSetInfo>
|
||||
{
|
||||
public new void SetProgress(float progress) => base.SetProgress(progress);
|
||||
public new void TriggerSuccess(string filename) => base.TriggerSuccess(filename);
|
||||
|
||||
public TestDownloadRequest(BeatmapSetInfo model)
|
||||
: base(model)
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Online.API
|
||||
|
||||
private void request_Progress(long current, long total) => API.Schedule(() => Progressed?.Invoke(current, total));
|
||||
|
||||
internal void TriggerSuccess(string filename)
|
||||
protected void TriggerSuccess(string filename)
|
||||
{
|
||||
if (this.filename != null)
|
||||
throw new InvalidOperationException("Attempted to trigger success more than once");
|
||||
|
Loading…
Reference in New Issue
Block a user