unit testing legacy c
DESCRIPTION
The slides from my lightning talk at the ACCU 2011 conference.TRANSCRIPT
![Page 1: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/1.jpg)
Unit Testing Legacy C
Mike Long ACCU 2011
![Page 2: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/2.jpg)
![Page 3: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/3.jpg)
![Page 4: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/4.jpg)
![Page 5: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/5.jpg)
![Page 6: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/6.jpg)
Use link seams!
![Page 7: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/7.jpg)
Use link seams!Lean on the #preprocessor!
![Page 8: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/8.jpg)
![Page 9: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/9.jpg)
![Page 10: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/10.jpg)
![Page 11: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/11.jpg)
![Page 12: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/12.jpg)
![Page 13: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/13.jpg)
Is there a better way?
![Page 14: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/14.jpg)
FakeFunctionFramework
https://github.com/meekrosoft/fff
![Page 15: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/15.jpg)
For Fake's Sake
![Page 16: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/16.jpg)
Function Call Counts!
![Page 17: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/17.jpg)
Function Call Sequence History!
![Page 18: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/18.jpg)
Specify Return Values!
![Page 19: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/19.jpg)
Return Value Sequences!
![Page 20: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/20.jpg)
Capture Argument History!
![Page 21: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/21.jpg)
how does this work?
![Page 22: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/22.jpg)
![Page 23: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/23.jpg)
![Page 24: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/24.jpg)
![Page 25: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/25.jpg)
#include "fff.h"
![Page 26: Unit Testing Legacy C](https://reader034.vdocument.in/reader034/viewer/2022052507/558d224fd8b42a4e0a8b46c6/html5/thumbnails/26.jpg)
#include "fff.h"
https://github.com/meekrosoft/fff