windows.media.speech: Tests and some refactoring.
2 unresolved threads
2 unresolved threads
Signed-off-by: Bernhard Kölbl besentv@gmail.com
Merge request reports
Activity
332 332 CloseHandle(handler->event_finished); 333 333 } 334 334 335 #define check_async_info(obj, exp_id, exp_status, exp_hr) check_asnyc_info_(__LINE__, obj, exp_id, exp_status, exp_hr) 336 static void check_asnyc_info_( unsigned int line, IInspectable *async_obj, UINT32 expect_id, AsyncStatus expect_status, HRESULT expect_hr) 347 hr = IAsyncInfo_get_Id(async_info, &async_id); 348 if (expect_status < 4) todo_wine ok_(__FILE__, line)(hr == S_OK, "IAsyncInfo_get_Id returned %#lx\n", hr); 349 else todo_wine ok_(__FILE__, line)(hr == E_ILLEGAL_METHOD_CALL, "IAsyncInfo_get_Id returned %#lx\n", hr); 350 todo_wine ok_(__FILE__, line)(async_id == expect_id, "got async_id %#x\n", async_id); 351 352 async_status = 0xdeadbeef; 353 hr = IAsyncInfo_get_Status(async_info, &async_status); 354 if (expect_status < 4) ok_(__FILE__, line)(hr == S_OK, "IAsyncInfo_get_Status returned %#lx\n", hr); 355 else ok_(__FILE__, line)(hr == E_ILLEGAL_METHOD_CALL, "IAsyncInfo_get_Status returned %#lx\n", hr); 356 ok_(__FILE__, line)(async_status == expect_status, "got async_status %#x\n", async_status); 357 358 async_hr = 0xdeadbeef; 359 hr = IAsyncInfo_get_ErrorCode(async_info, &async_hr); 360 if (expect_status < 4) ok_(__FILE__, line)(hr == S_OK, "IAsyncInfo_get_ErrorCode returned %#lx\n", hr); 361 else ok_(__FILE__, line)(hr == E_ILLEGAL_METHOD_CALL, "IAsyncInfo_get_ErrorCode returned %#lx\n", hr); 362 if (expect_status < 4) todo_wine_if(FAILED(expect_hr)) ok_(__FILE__, line)(async_hr == expect_hr, "got async_hr %#lx\n", async_hr); requested review from @rbernon
added 16 commits
-
fc5761c5...f3576a05 - 10 commits from branch
wine:master
- 1805b2ff - windows.media.speech/tests: Remove a inconsistent ref check.
- c73f06a5 - windows.media.speech: Rename impl_from_IAsyncInfo to async_inspectable_impl_from_IAsyncInfo.
- 00e3dccb - windows.media.speech/tests: Retype AsyncOperationCompletedHandler to IInspectable.
- 1b1ed8f1 - windows.media.speech/tests: Add await helper for IAsyncOperation.
- 38902e6d - windows.media.speech/tests: Make use of a helper function for IAsyncInfo checking.
- 0a4b2bbd - windows.media.speech/tests: Add some recognition tests.
Toggle commit list-
fc5761c5...f3576a05 - 10 commits from branch
Please register or sign in to reply