From a3e4d1993331bd9dc27d482c13def9c6b7019126 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 22 Sep 2023 14:32:31 +0900 Subject: [PATCH] Update tests which were not using an `IAdjustableClock` as `GameplayClockContainer` source --- osu.Game.Tests/NonVisual/GameplayClockContainerTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game.Tests/NonVisual/GameplayClockContainerTest.cs b/osu.Game.Tests/NonVisual/GameplayClockContainerTest.cs index 4b3163ad89..65113add2d 100644 --- a/osu.Game.Tests/NonVisual/GameplayClockContainerTest.cs +++ b/osu.Game.Tests/NonVisual/GameplayClockContainerTest.cs @@ -3,6 +3,7 @@ using NUnit.Framework; using osu.Framework.Audio; +using osu.Framework.Audio.Track; using osu.Framework.Bindables; using osu.Framework.Timing; using osu.Game.Screens.Play; @@ -16,7 +17,7 @@ namespace osu.Game.Tests.NonVisual [TestCase(1)] public void TestTrueGameplayRateWithGameplayAdjustment(double underlyingClockRate) { - var framedClock = new FramedClock(new ManualClock { Rate = underlyingClockRate }); + var framedClock = new TrackVirtual(60000) { Frequency = { Value = underlyingClockRate } }; var gameplayClock = new TestGameplayClockContainer(framedClock); Assert.That(gameplayClock.GetTrueGameplayRate(), Is.EqualTo(2)); @@ -24,7 +25,7 @@ namespace osu.Game.Tests.NonVisual private partial class TestGameplayClockContainer : GameplayClockContainer { - public TestGameplayClockContainer(IFrameBasedClock underlyingClock) + public TestGameplayClockContainer(IClock underlyingClock) : base(underlyingClock, false, false) { AdjustmentsFromMods.AddAdjustment(AdjustableProperty.Frequency, new BindableDouble(2.0));