|
@@ -19,7 +19,7 @@ namespace Avalonia.UnitTests
|
|
|
public static readonly TestServices StyledWindow = new TestServices(
|
|
public static readonly TestServices StyledWindow = new TestServices(
|
|
|
assetLoader: new AssetLoader(),
|
|
assetLoader: new AssetLoader(),
|
|
|
layoutManager: new LayoutManager(),
|
|
layoutManager: new LayoutManager(),
|
|
|
- platformWrapper: new PclPlatformWrapper(),
|
|
|
|
|
|
|
+ platform: new StandardRuntimePlatform(),
|
|
|
renderInterface: CreateRenderInterfaceMock(),
|
|
renderInterface: CreateRenderInterfaceMock(),
|
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>(),
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>(),
|
|
|
styler: new Styler(),
|
|
styler: new Styler(),
|
|
@@ -31,7 +31,7 @@ namespace Avalonia.UnitTests
|
|
|
renderInterface: CreateRenderInterfaceMock());
|
|
renderInterface: CreateRenderInterfaceMock());
|
|
|
|
|
|
|
|
public static readonly TestServices MockPlatformWrapper = new TestServices(
|
|
public static readonly TestServices MockPlatformWrapper = new TestServices(
|
|
|
- platformWrapper: Mock.Of<IPclPlatformWrapper>());
|
|
|
|
|
|
|
+ platform: Mock.Of<IRuntimePlatform>());
|
|
|
|
|
|
|
|
public static readonly TestServices MockStyler = new TestServices(
|
|
public static readonly TestServices MockStyler = new TestServices(
|
|
|
styler: Mock.Of<IStyler>());
|
|
styler: Mock.Of<IStyler>());
|
|
@@ -56,7 +56,7 @@ namespace Avalonia.UnitTests
|
|
|
IInputManager inputManager = null,
|
|
IInputManager inputManager = null,
|
|
|
Func<IKeyboardDevice> keyboardDevice = null,
|
|
Func<IKeyboardDevice> keyboardDevice = null,
|
|
|
ILayoutManager layoutManager = null,
|
|
ILayoutManager layoutManager = null,
|
|
|
- IPclPlatformWrapper platformWrapper = null,
|
|
|
|
|
|
|
+ IRuntimePlatform platform = null,
|
|
|
IPlatformRenderInterface renderInterface = null,
|
|
IPlatformRenderInterface renderInterface = null,
|
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
|
IStyler styler = null,
|
|
IStyler styler = null,
|
|
@@ -70,7 +70,7 @@ namespace Avalonia.UnitTests
|
|
|
InputManager = inputManager;
|
|
InputManager = inputManager;
|
|
|
KeyboardDevice = keyboardDevice;
|
|
KeyboardDevice = keyboardDevice;
|
|
|
LayoutManager = layoutManager;
|
|
LayoutManager = layoutManager;
|
|
|
- PlatformWrapper = platformWrapper;
|
|
|
|
|
|
|
+ Platform = platform;
|
|
|
RenderInterface = renderInterface;
|
|
RenderInterface = renderInterface;
|
|
|
StandardCursorFactory = standardCursorFactory;
|
|
StandardCursorFactory = standardCursorFactory;
|
|
|
Styler = styler;
|
|
Styler = styler;
|
|
@@ -85,7 +85,7 @@ namespace Avalonia.UnitTests
|
|
|
public IFocusManager FocusManager { get; }
|
|
public IFocusManager FocusManager { get; }
|
|
|
public Func<IKeyboardDevice> KeyboardDevice { get; }
|
|
public Func<IKeyboardDevice> KeyboardDevice { get; }
|
|
|
public ILayoutManager LayoutManager { get; }
|
|
public ILayoutManager LayoutManager { get; }
|
|
|
- public IPclPlatformWrapper PlatformWrapper { get; }
|
|
|
|
|
|
|
+ public IRuntimePlatform Platform { get; }
|
|
|
public IPlatformRenderInterface RenderInterface { get; }
|
|
public IPlatformRenderInterface RenderInterface { get; }
|
|
|
public IStandardCursorFactory StandardCursorFactory { get; }
|
|
public IStandardCursorFactory StandardCursorFactory { get; }
|
|
|
public IStyler Styler { get; }
|
|
public IStyler Styler { get; }
|
|
@@ -100,7 +100,7 @@ namespace Avalonia.UnitTests
|
|
|
IInputManager inputManager = null,
|
|
IInputManager inputManager = null,
|
|
|
Func<IKeyboardDevice> keyboardDevice = null,
|
|
Func<IKeyboardDevice> keyboardDevice = null,
|
|
|
ILayoutManager layoutManager = null,
|
|
ILayoutManager layoutManager = null,
|
|
|
- IPclPlatformWrapper platformWrapper = null,
|
|
|
|
|
|
|
+ IRuntimePlatform platform = null,
|
|
|
IPlatformRenderInterface renderInterface = null,
|
|
IPlatformRenderInterface renderInterface = null,
|
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
|
IStyler styler = null,
|
|
IStyler styler = null,
|
|
@@ -115,7 +115,7 @@ namespace Avalonia.UnitTests
|
|
|
inputManager: inputManager ?? InputManager,
|
|
inputManager: inputManager ?? InputManager,
|
|
|
keyboardDevice: keyboardDevice ?? KeyboardDevice,
|
|
keyboardDevice: keyboardDevice ?? KeyboardDevice,
|
|
|
layoutManager: layoutManager ?? LayoutManager,
|
|
layoutManager: layoutManager ?? LayoutManager,
|
|
|
- platformWrapper: platformWrapper ?? PlatformWrapper,
|
|
|
|
|
|
|
+ platform: platform ?? Platform,
|
|
|
renderInterface: renderInterface ?? RenderInterface,
|
|
renderInterface: renderInterface ?? RenderInterface,
|
|
|
standardCursorFactory: standardCursorFactory ?? StandardCursorFactory,
|
|
standardCursorFactory: standardCursorFactory ?? StandardCursorFactory,
|
|
|
styler: styler ?? Styler,
|
|
styler: styler ?? Styler,
|