diff options
Diffstat (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp')
| -rw-r--r-- | src/burn/test/BurnUnitTest/RegistrationTest.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index af52e893..32ff9ea2 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp | |||
| @@ -115,9 +115,10 @@ namespace Bootstrapper | |||
| 115 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 115 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 116 | 116 | ||
| 117 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 117 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 118 | plan.pCommand = &command; | ||
| 118 | plan.pInternalCommand = &internalCommand; | 119 | plan.pInternalCommand = &internalCommand; |
| 119 | 120 | ||
| 120 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 121 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 121 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 122 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 122 | 123 | ||
| 123 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 124 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
| @@ -213,9 +214,10 @@ namespace Bootstrapper | |||
| 213 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 214 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 214 | 215 | ||
| 215 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 216 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 217 | plan.pCommand = &command; | ||
| 216 | plan.pInternalCommand = &internalCommand; | 218 | plan.pInternalCommand = &internalCommand; |
| 217 | 219 | ||
| 218 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 220 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 219 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 221 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 220 | 222 | ||
| 221 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 223 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
| @@ -334,9 +336,10 @@ namespace Bootstrapper | |||
| 334 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 336 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 335 | 337 | ||
| 336 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 338 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 339 | plan.pCommand = &command; | ||
| 337 | plan.pInternalCommand = &internalCommand; | 340 | plan.pInternalCommand = &internalCommand; |
| 338 | 341 | ||
| 339 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 342 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 340 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 343 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 341 | 344 | ||
| 342 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 345 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
| @@ -455,9 +458,10 @@ namespace Bootstrapper | |||
| 455 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 458 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 456 | 459 | ||
| 457 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 460 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 461 | plan.pCommand = &command; | ||
| 458 | plan.pInternalCommand = &internalCommand; | 462 | plan.pInternalCommand = &internalCommand; |
| 459 | 463 | ||
| 460 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 464 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 461 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 465 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 462 | 466 | ||
| 463 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 467 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
| @@ -601,9 +605,10 @@ namespace Bootstrapper | |||
| 601 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 605 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 602 | 606 | ||
| 603 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 607 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 608 | plan.pCommand = &command; | ||
| 604 | plan.pInternalCommand = &internalCommand; | 609 | plan.pInternalCommand = &internalCommand; |
| 605 | 610 | ||
| 606 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 611 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 607 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 612 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 608 | 613 | ||
| 609 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 614 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
| @@ -738,9 +743,10 @@ namespace Bootstrapper | |||
| 738 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 743 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 739 | 744 | ||
| 740 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; | 745 | plan.action = BOOTSTRAPPER_ACTION_INSTALL; |
| 746 | plan.pCommand = &command; | ||
| 741 | plan.pInternalCommand = &internalCommand; | 747 | plan.pInternalCommand = &internalCommand; |
| 742 | 748 | ||
| 743 | hr = PlanSetResumeCommand(&plan, ®istration, &command, &logging); | 749 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
| 744 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 750 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
| 745 | 751 | ||
| 746 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); | 752 | hr = PathForCurrentProcess(&sczCurrentProcess, NULL); |
