Nikolay Sivov (@nsivov) commented about dlls/dwrite/tests/font.c:
- UINT64 count;
- HRESULT hr;
- ULONG ref;
- factory = create_factory_iid(&IID_IDWriteFactory3);
- if (!factory)
- {
win_skip("GetFontDownloadQueue() is not supported\n");
return;
- }
- EXPECT_REF(factory, 1);
- hr = IDWriteFactory3_GetFontDownloadQueue(factory, &queue);
- ok(hr == S_OK, "got %#lx\n", hr);
- EXPECT_REF(queue, 1);
- EXPECT_REF(factory, 2);
I'd say this is implementation details that we don't need to follow. What makes sense is to create two factories and test that queue instances are different, since it's visible to listeners.