~/talk

Advanced Unit Testing in C & C++

Talkat CppCon 2015 · 2015-09-21..09-25· [testing]
slides:none on file

Covers concrete techniques for isolating and testing C and C++ code: running kernel-mode code in userland by undefining conflicting headers and using specific kernel compile flags, link-time mocks for globals and Singletons, and runtime mocks via C green and makito PP. Shows live examples: PCI device stubs that reproduce a crash, TCP parser and socket_stream tests that mock stream_read/receive, a link-time logger wrapper, and a mocked socket-factory sequence. Warns against pervasive preprocessor seams and recommends -nostdlib linking and pluggable framework customization.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 10:31Unit testing basics refresher
  3. 28:30Testing kernel code in userland
  4. 38:42Mocking standard library functions
  5. 46:10Mocking Singletons and factories
  6. 58:06Framework customization and deployment
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.