summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core.UnitTests')
-rw-r--r--Xamarin.Forms.Core.UnitTests/MockPlatformServices.cs51
1 files changed, 0 insertions, 51 deletions
diff --git a/Xamarin.Forms.Core.UnitTests/MockPlatformServices.cs b/Xamarin.Forms.Core.UnitTests/MockPlatformServices.cs
index 5109cbb4..e8519b9e 100644
--- a/Xamarin.Forms.Core.UnitTests/MockPlatformServices.cs
+++ b/Xamarin.Forms.Core.UnitTests/MockPlatformServices.cs
@@ -119,57 +119,6 @@ namespace Xamarin.Forms.Core.UnitTests
return AppDomain.CurrentDomain.GetAssemblies ();
}
- public ITimer CreateTimer (Action<object> callback)
- {
- return new MockTimer (new Timer (o => callback(o)));
- }
-
- public ITimer CreateTimer (Action<object> callback, object state, int dueTime, int period)
- {
- return new MockTimer (new Timer (o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer (Action<object> callback, object state, long dueTime, long period)
- {
- return new MockTimer (new Timer (o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer (Action<object> callback, object state, TimeSpan dueTime, TimeSpan period)
- {
- return new MockTimer (new Timer (o => callback(o), state, dueTime, period));
- }
-
- public ITimer CreateTimer (Action<object> callback, object state, uint dueTime, uint period)
- {
- return new MockTimer (new Timer (o => callback(o), state, dueTime, period));
- }
-
- public class MockTimer : ITimer
- {
- readonly Timer timer;
- public MockTimer (Timer timer)
- {
- this.timer = timer;
- }
-
- public void Change (int dueTime, int period)
- {
- timer.Change (dueTime, period);
- }
- public void Change (long dueTime, long period)
- {
- timer.Change (dueTime, period);
- }
- public void Change (TimeSpan dueTime, TimeSpan period)
- {
- timer.Change (dueTime, period);
- }
- public void Change (uint dueTime, uint period)
- {
- timer.Change (dueTime, period);
- }
- }
-
public IIsolatedStorageFile GetUserStoreForApplication ()
{
#if WINDOWS_PHONE