Unit Testing Legacy C

2,852 views

Published on

The slides from my lightning talk at the ACCU 2011 conference.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,852
On SlideShare
0
From Embeds
0
Number of Embeds
1,602
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Unit Testing Legacy C

  1. 1. Unit Testing Legacy C Mike Long ACCU 2011
  2. 2. Use link seams!
  3. 3. Lean on the Use link seams!#preprocessor!
  4. 4. Is there a better way?
  5. 5. FakeFunctionFrameworkhttps://github.com/meekrosoft/fff
  6. 6. For Fakes Sake
  7. 7. Function Call Counts!
  8. 8. Function Call Sequence History!
  9. 9. Specify Return Values!
  10. 10. Return Value Sequences!
  11. 11. Capture Argument History!
  12. 12. how does this work?
  13. 13. #include "fff.h"
  14. 14. #include "fff.h"https://github.com/meekrosoft/fff

×