tpounds / mockitopp

Simple mocking for C++
MIT License
77 stars 6 forks source link

Support Multiple Inheritance #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently MockitoPP only supports mocking classes that have a single
virtual table.  Determining a classes layout pseudo-dynamically is
nontrivial since there is no way at compile time to determine the adjusted
this and vtable offset.  This information can be deduced at runtime given a
member function pointer and its compiler dependent layout (see:
http://www.codeproject.com/KB/cpp/FastDelegate.aspx). The tricky part is
taking a decoded MFP implementation and mapping it to a compile time
generated thunk that dispatches to the correct dynamic function.

Original issue reported on code.google.com by trevor.p...@gmail.com on 4 Nov 2009 at 5:25

GoogleCodeExporter commented 9 years ago

Original comment by trevor.p...@gmail.com on 9 Dec 2010 at 4:31