File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,21 @@ TEST_CASE("activation_withoug_regfree_system_type")
1414 REQUIRE_NOTHROW (Uri (L" https://bing.com" ));
1515}
1616
17+ TEST_CASE (" activation_manifested_avoiding_regfree" )
18+ {
19+ bool fusionRegistrationWorked{ false };
20+ try
21+ {
22+ // app.manifest has registration for the Simple runtimeclass so activation should succeed.
23+ Simple s{};
24+ fusionRegistrationWorked = true ;
25+ }
26+ catch (...)
27+ {
28+ }
29+ REQUIRE (fusionRegistrationWorked);
30+ }
31+
1732TEST_CASE (" activation_withoug_regfree_fails" )
1833{
1934 bool threwException{ false };
Original file line number Diff line number Diff line change 1+ <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
2+ <file name="test_component.dll">
3+ <activatableClass
4+ name="test_component.Simple"
5+ threadingModel="both"
6+ xmlns="urn:schemas-microsoft-com:winrt.v1"
7+ />
8+ </file>
9+ </assembly>
Original file line number Diff line number Diff line change 286286 </ClCompile >
287287 <ClCompile Include =" ranges.cpp" />
288288 </ItemGroup >
289+ <ItemGroup >
290+ <Manifest Include =" app.manifest" />
291+ </ItemGroup >
289292 <Import Project =" $(VCTargetsPath)\Microsoft.Cpp.targets" />
290293 <ImportGroup Label =" ExtensionTargets" >
291294 </ImportGroup >
You can’t perform that action at this time.
0 commit comments