Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1729)

Unified Diff: testing/generate_gmock_mutant.py

Issue 395023: Late object binding for stdcall. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/gmock_mutant.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/generate_gmock_mutant.py
===================================================================
--- testing/generate_gmock_mutant.py (revision 31943)
+++ testing/generate_gmock_mutant.py (working copy)
@@ -418,7 +418,14 @@
# Functor for method with __stdcall calling conventions.
print "#if defined (OS_WIN)"
stdcall = CREATE_METHOD_FUNCTOR_TEMPLATE.replace("U::", "__stdcall U::")
- print FixCode(stdcall % args)
+ stdcall = FixCode(stdcall % args)
+ print stdcall
+ print "#ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING"
+ stdcall2 = stdcall.replace("CreateFunctor(T* obj,", "CreateFunctor(T** obj,")
+ stdcall2 = stdcall2.replace("new Mutant", "new MutantLateObjectBind")
+ stdcall2 = stdcall2.replace(" " * 17 + "Tuple", " " * 31 + "Tuple")
+ print stdcall2
+ print "#endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING"
print "#endif // OS_WIN\n"
« no previous file with comments | « no previous file | testing/gmock_mutant.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698