Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test driven development for C++ XPCOM component?

Tags:

c++

tdd

xpcom

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 ?

like image 882
Xinus Avatar asked Sep 28 '26 12:09

Xinus


1 Answers

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.

like image 148
sdwilsh Avatar answered Oct 01 '26 01:10

sdwilsh