Skip to content
Snippets Groups Projects

windows.media.speech: Tests and some refactoring.

Merged Bernhard Kölbl requested to merge besentv/wine:merge into master
2 unresolved threads

Signed-off-by: Bernhard Kölbl besentv@gmail.com

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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)
  • Rémi Bernon
    Rémi Bernon @rbernon started a thread on commit 81afee99
  • 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);
  • Rémi Bernon approved this merge request

    approved this merge request

  • Rémi Bernon requested review from @rbernon

    requested review from @rbernon

  • Alexandre Julliard approved this merge request

    approved this merge request

  • 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.

    Compare with previous version

  • Please register or sign in to reply
    Loading