Skip to content

Commit 8effa4d

Browse files
committed
TestComponent: add more async static methods
These will allow testing all types of async methods and all possible results.
1 parent ca56594 commit 8effa4d

File tree

4 files changed

+964
-878
lines changed

4 files changed

+964
-878
lines changed

TestComponent/TestComponent.idl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ namespace TestComponent
243243
static Windows.Foundation.Collections.IVector<Windows.Foundation.IStringable> CreateStringableVector();
244244
static Windows.Foundation.TimeSpan CreateTimeSpan(UInt32 milliseconds);
245245
static Windows.Foundation.IAsyncAction CreateAsyncAction(UInt32 milliseconds);
246+
static Windows.Foundation.IAsyncAction CreateAsyncActionWithError(UInt32 milliseconds, Int32 error);
247+
static Windows.Foundation.IAsyncOperation<Int32> CreateAsyncOperation(UInt32 milliseconds, Int32 result);
248+
static Windows.Foundation.IAsyncOperation<Int32> CreateAsyncOperationWithError(UInt32 milliseconds, Int32 result, Int32 error);
249+
static Windows.Foundation.IAsyncActionWithProgress<Int32> CreateAsyncActionWithProgress(UInt32 milliseconds, Windows.Foundation.Collections.IVectorView<Int32> items);
250+
static Windows.Foundation.IAsyncActionWithProgress<Int32> CreateAsyncActionWithProgressWithError(UInt32 milliseconds, Windows.Foundation.Collections.IVectorView<Int32> items, Int32 error);
251+
static Windows.Foundation.IAsyncOperationWithProgress<Int32, Int32> CreateAsyncOperationWithProgress(UInt32 milliseconds, Windows.Foundation.Collections.IVectorView<Int32> items, Int32 result);
252+
static Windows.Foundation.IAsyncOperationWithProgress<Int32, Int32> CreateAsyncOperationWithProgressWithError(UInt32 milliseconds, Windows.Foundation.Collections.IVectorView<Int32> items, Int32 result, Int32 error);
246253
static String ExpectObject(Object value);
247254
}
248255

TestComponent/TestComponent.nuspec

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
<?xml version="1.0"?>
2-
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3-
<metadata minClientVersion="2.5">
4-
<id>PyWinRT.TestWinRT</id>
5-
<version>1.2.0</version>
6-
<title>TestWinRT</title>
7-
<authors>Microsoft</authors>
8-
<license type="expression">MIT</license>
9-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10-
<description>TestWinRT</description>
11-
<readme>docs/README.md</readme>
12-
<releaseNotes></releaseNotes>
13-
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
14-
<projectUrl>https://github.com/pywinrt/testwinrt</projectUrl>
15-
<repository type="git" url="https://github.com/pywinrt/testwinrt" />
16-
<dependencies>
17-
<group targetFramework="uap10.0" />
18-
</dependencies>
19-
</metadata>
20-
<files>
21-
<file src="README.md" target="docs\"/>
22-
<file src="..\TestComponent.winmd" target="lib\uap10.0"/>
23-
<file src="..\Win32\Release\TestComponent\TestComponent.dll" target="runtimes\win10-x86\native"/>
24-
<file src="..\x64\Release\TestComponent\TestComponent.dll" target="runtimes\win10-x64\native"/>
25-
<file src="..\ARM64\Release\TestComponent\TestComponent.dll" target="runtimes\win10-arm64\native"/>
26-
</files>
27-
</package>
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.5">
4+
<id>PyWinRT.TestWinRT</id>
5+
<version>1.3.0</version>
6+
<title>TestWinRT</title>
7+
<authors>Microsoft</authors>
8+
<license type="expression">MIT</license>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<description>TestWinRT</description>
11+
<readme>docs/README.md</readme>
12+
<releaseNotes></releaseNotes>
13+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
14+
<projectUrl>https://github.com/pywinrt/testwinrt</projectUrl>
15+
<repository type="git" url="https://github.com/pywinrt/testwinrt" />
16+
<dependencies>
17+
<group targetFramework="uap10.0" />
18+
</dependencies>
19+
</metadata>
20+
<files>
21+
<file src="README.md" target="docs\"/>
22+
<file src="..\TestComponent.winmd" target="lib\uap10.0"/>
23+
<file src="..\Win32\Release\TestComponent\TestComponent.dll" target="runtimes\win10-x86\native"/>
24+
<file src="..\x64\Release\TestComponent\TestComponent.dll" target="runtimes\win10-x64\native"/>
25+
<file src="..\ARM64\Release\TestComponent\TestComponent.dll" target="runtimes\win10-arm64\native"/>
26+
</files>
27+
</package>

0 commit comments

Comments
 (0)