diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 22:07:04 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 22:07:04 +0000 |
commit | 3e8e8da2b8b7c2970628c7fff15413aa0532de1a (patch) | |
tree | a81cc472c62f12bfc9e2464f8cce0ab9168f7e49 /testing/generate_gmock_mutant.py | |
parent | 8b070377b2ed6cfa2b0fd6a7e2738913dff95f89 (diff) | |
download | chromium_src-3e8e8da2b8b7c2970628c7fff15413aa0532de1a.zip chromium_src-3e8e8da2b8b7c2970628c7fff15413aa0532de1a.tar.gz chromium_src-3e8e8da2b8b7c2970628c7fff15413aa0532de1a.tar.bz2 |
Late object binding for stdcall.
TBR=amit
Review URL: http://codereview.chromium.org/395023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/generate_gmock_mutant.py')
-rw-r--r-- | testing/generate_gmock_mutant.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/generate_gmock_mutant.py b/testing/generate_gmock_mutant.py index 7de9cbc..8e1fdf0 100644 --- a/testing/generate_gmock_mutant.py +++ b/testing/generate_gmock_mutant.py @@ -418,7 +418,14 @@ def GenerateCreateFunctor(prebound, calltime): # 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" |