Search code examples
c++tddxpcom

Test driven development for C++ XPCOM component?


I want to create a Firefox extension using c++ XPCOM component which in turn uses javascript XPCOM component. Is there any framework that allows test driven development of C++ XPCOM component/firefox extension ?


Solution

  • You could copy what Mozilla uses to test native code. You just have to make sure you link with libxul (which may require that you build Firefox).

    An example file that uses TestHarness.h can be found here.