mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
877213ca74
In TestEventTargetQI.cpp, nsIThreadPool is a subclass of nsIEventTarget, so we cannot QI from the former to the latter once trivial QIs are banned. However, we still want to check if a QI to nsIEventTarget does something, so I added an intermediate cast up to nsISupports, and then QI from there. I wrapped that all up in a templated function, because the code is a bit ugly, and used it everywhere for uniformity, even though it is not always needed. I fixed TestCOMPtr.cpp in the same way, by casting up to nsISupports. Differential Revision: https://phabricator.services.mozilla.com/D6855 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
gtest | ||
unit | ||
windows | ||
moz.build | ||
NotXPCOMTest.idl | ||
RegFactory.cpp | ||
resources.h | ||
SizeTest01.cpp | ||
SizeTest02.cpp | ||
SizeTest03.cpp | ||
SizeTest04.cpp | ||
SizeTest05.cpp | ||
SizeTest06.cpp | ||
test.properties | ||
TestArguments.cpp | ||
TestBlockingProcess.cpp | ||
TestHarness.h | ||
TestingAtomList.h | ||
TestPRIntN.cpp | ||
TestQuickReturn.cpp | ||
TestShutdown.cpp | ||
TestStackCrawl.cpp | ||
TestStreamUtils.cpp | ||
TestUnicodeArguments.cpp | ||
TestWinReg.js |