Clean up spectator streaming client with new hub connector

This commit is contained in:
Salman Ahmed
2021-02-09 02:15:51 +03:00
parent 28b815ffe1
commit f76f92515e
3 changed files with 48 additions and 124 deletions

View File

@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
@ -233,6 +232,8 @@ namespace osu.Game.Tests.Visual.Gameplay
public class TestSpectatorStreamingClient : SpectatorStreamingClient
{
protected override IBindable<bool> IsConnected { get; } = new BindableBool(false);
public readonly User StreamingUser = new User { Id = 55, Username = "Test user" };
public new BindableList<int> PlayingUsers => (BindableList<int>)base.PlayingUsers;
@ -244,11 +245,6 @@ namespace osu.Game.Tests.Visual.Gameplay
{
}
protected override Task Connect()
{
return Task.CompletedTask;
}
public void StartPlay(int beatmapId)
{
this.beatmapId = beatmapId;