Skip to content

Commit

Permalink
Fix Cortana functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
bviglietta authored and Raj Seshasankaran committed Jul 21, 2016
1 parent 9da1ac6 commit acf58a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functionaltests/Tests/CortanaTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ - (BOOL)application:(UIApplication*)application didReceiveProtocol:(WFUri*)uri {
return S_OK;
});

fakeProtocolActivatedEventArgs->Setget_CallerPackageFamilyName([](HSTRING* name) {
Wrappers::HStringReference testName(L"TestPackageFamilyName");
return testName.CopyTo(name);
});

// Pass activation argument to method which activates the app
auto args = fakeProtocolActivatedEventArgs.Detach();
UIApplicationActivationTest(reinterpret_cast<IInspectable*>(args), NSStringFromClass([CortanaProtocolForegroundTestDelegate class]));
Expand Down

0 comments on commit acf58a9

Please sign in to comment.