michael@0: // Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: // This file automatically generated by testing/generate_gmock_mutant.py. michael@0: // DO NOT EDIT. michael@0: michael@0: #ifndef TESTING_GMOCK_MUTANT_H_ michael@0: #define TESTING_GMOCK_MUTANT_H_ michael@0: michael@0: // The intention of this file is to make possible using GMock actions in michael@0: // all of its syntactic beauty. Classes and helper functions can be used as michael@0: // more generic variants of Task and Callback classes (see base/task.h) michael@0: // Mutant supports both pre-bound arguments (like Task) and call-time michael@0: // arguments (like Callback) - hence the name. :-) michael@0: // michael@0: // DispatchToMethod/Function supports two sets of arguments: pre-bound (P) and michael@0: // call-time (C). The arguments as well as the return type are templatized. michael@0: // DispatchToMethod/Function will also try to call the selected method or michael@0: // function even if provided pre-bound arguments does not match exactly with michael@0: // the function signature hence the X1, X2 ... XN parameters in CreateFunctor. michael@0: // DispatchToMethod will try to invoke method that may not belong to the michael@0: // object's class itself but to the object's class base class. michael@0: // michael@0: // Additionally you can bind the object at calltime by binding a pointer to michael@0: // pointer to the object at creation time - before including this file you michael@0: // have to #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING. michael@0: // michael@0: // TODO(stoyan): It's yet not clear to me should we use T& and T&* instead michael@0: // of T* and T** when we invoke CreateFunctor to match the EXPECT_CALL style. michael@0: // michael@0: // michael@0: // Sample usage with gMock: michael@0: // michael@0: // struct Mock : public ObjectDelegate { michael@0: // MOCK_METHOD2(string, OnRequest(int n, const string& request)); michael@0: // MOCK_METHOD1(void, OnQuit(int exit_code)); michael@0: // MOCK_METHOD2(void, LogMessage(int level, const string& message)); michael@0: // michael@0: // string HandleFlowers(const string& reply, int n, const string& request) { michael@0: // string result = SStringPrintf("In request of %d %s ", n, request); michael@0: // for (int i = 0; i < n; ++i) result.append(reply) michael@0: // return result; michael@0: // } michael@0: // michael@0: // void DoLogMessage(int level, const string& message) { michael@0: // } michael@0: // michael@0: // void QuitMessageLoop(int seconds) { michael@0: // MessageLoop* loop = MessageLoop::current(); michael@0: // loop->PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), michael@0: // 1000 * seconds); michael@0: // } michael@0: // }; michael@0: // michael@0: // Mock mock; michael@0: // // Will invoke mock.HandleFlowers("orchids", n, request) michael@0: // // "orchids" is a pre-bound argument, and and are call-time michael@0: // // arguments - they are not known until the OnRequest mock is invoked. michael@0: // EXPECT_CALL(mock, OnRequest(Ge(5), StartsWith("flower")) michael@0: // .Times(1) michael@0: // .WillOnce(Invoke(CreateFunctor(&mock, &Mock::HandleFlowers, michael@0: // string("orchids")))); michael@0: // michael@0: // michael@0: // // No pre-bound arguments, two call-time arguments passed michael@0: // // directly to DoLogMessage michael@0: // EXPECT_CALL(mock, OnLogMessage(_, _)) michael@0: // .Times(AnyNumber()) michael@0: // .WillAlways(Invoke(CreateFunctor, &mock, &Mock::DoLogMessage)); michael@0: // michael@0: // michael@0: // // In this case we have a single pre-bound argument - 3. We ignore michael@0: // // all of the arguments of OnQuit. michael@0: // EXCEPT_CALL(mock, OnQuit(_)) michael@0: // .Times(1) michael@0: // .WillOnce(InvokeWithoutArgs(CreateFunctor( michael@0: // &mock, &Mock::QuitMessageLoop, 3))); michael@0: // michael@0: // MessageLoop loop; michael@0: // loop.Run(); michael@0: // michael@0: // michael@0: // // Here is another example of how we can set an action that invokes michael@0: // // method of an object that is not yet created. michael@0: // struct Mock : public ObjectDelegate { michael@0: // MOCK_METHOD1(void, DemiurgeCreated(Demiurge*)); michael@0: // MOCK_METHOD2(void, OnRequest(int count, const string&)); michael@0: // michael@0: // void StoreDemiurge(Demiurge* w) { michael@0: // demiurge_ = w; michael@0: // } michael@0: // michael@0: // Demiurge* demiurge; michael@0: // } michael@0: // michael@0: // EXPECT_CALL(mock, DemiurgeCreated(_)).Times(1) michael@0: // .WillOnce(Invoke(CreateFunctor(&mock, &Mock::StoreDemiurge))); michael@0: // michael@0: // EXPECT_CALL(mock, OnRequest(_, StrEq("Moby Dick"))) michael@0: // .Times(AnyNumber()) michael@0: // .WillAlways(WithArgs<0>(Invoke( michael@0: // CreateFunctor(&mock->demiurge_, &Demiurge::DecreaseMonsters)))); michael@0: // michael@0: michael@0: #include "base/memory/linked_ptr.h" michael@0: #include "base/tuple.h" // for Tuple michael@0: michael@0: namespace testing { michael@0: michael@0: // 0 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple0& c) { michael@0: return (*function)(); michael@0: } michael@0: michael@0: // 0 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple1& c) { michael@0: return (*function)(c.a); michael@0: } michael@0: michael@0: // 0 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple2& c) { michael@0: return (*function)(c.a, c.b); michael@0: } michael@0: michael@0: // 0 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple3& c) { michael@0: return (*function)(c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 0 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple4& c) { michael@0: return (*function)(c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 0 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple5& c) { michael@0: return (*function)(c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 0 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple0& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple0& p, michael@0: const Tuple6& c) { michael@0: return (*function)(c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 1 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a); michael@0: } michael@0: michael@0: // 1 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, c.a); michael@0: } michael@0: michael@0: // 1 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, c.a, c.b); michael@0: } michael@0: michael@0: // 1 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 1 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 1 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 1 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple1& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple1& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 2 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a, p.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a, p.b); michael@0: } michael@0: michael@0: // 2 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, p.b, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, p.b, c.a); michael@0: } michael@0: michael@0: // 2 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, p.b, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, p.b, c.a, c.b); michael@0: } michael@0: michael@0: // 2 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, p.b, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, p.b, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 2 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, p.b, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, p.b, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 2 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, p.b, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, p.b, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 2 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple2& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, p.b, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple2& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, p.b, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 3 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a, p.b, p.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a, p.b, p.c); michael@0: } michael@0: michael@0: // 3 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a); michael@0: } michael@0: michael@0: // 3 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a, c.b); michael@0: } michael@0: michael@0: // 3 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 3 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 3 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 3 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple3& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple3& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, p.b, p.c, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 4 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d); michael@0: } michael@0: michael@0: // 4 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a); michael@0: } michael@0: michael@0: // 4 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a, c.b); michael@0: } michael@0: michael@0: // 4 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 4 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 4 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 4 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple4& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple4& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 5 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e); michael@0: } michael@0: michael@0: // 5 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a); michael@0: } michael@0: michael@0: // 5 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a, c.b); michael@0: } michael@0: michael@0: // 5 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 5 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 5 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 5 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple5& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple5& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // 6 - 0 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple0& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple0& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f); michael@0: } michael@0: michael@0: // 6 - 1 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple1& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple1& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a); michael@0: } michael@0: michael@0: // 6 - 2 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple2& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple2& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b); michael@0: } michael@0: michael@0: // 6 - 3 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple3& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple3& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c); michael@0: } michael@0: michael@0: // 6 - 4 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple4& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple4& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d); michael@0: } michael@0: michael@0: // 6 - 5 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple5& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple5& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d, c.e); michael@0: } michael@0: michael@0: // 6 - 6 michael@0: template michael@0: inline R DispatchToMethod(T* obj, Method method, michael@0: const Tuple6& p, michael@0: const Tuple6& c) { michael@0: return (obj->*method)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: template michael@0: inline R DispatchToFunction(Function function, michael@0: const Tuple6& p, michael@0: const Tuple6& c) { michael@0: return (*function)(p.a, p.b, p.c, p.d, p.e, p.f, c.a, c.b, c.c, c.d, c.e, c.f); michael@0: } michael@0: michael@0: // Interface that is exposed to the consumer, that does the actual calling michael@0: // of the method. michael@0: template michael@0: class MutantRunner { michael@0: public: michael@0: virtual R RunWithParams(const Params& params) = 0; michael@0: virtual ~MutantRunner() {} michael@0: }; michael@0: michael@0: // Mutant holds pre-bound arguments (like Task). Like Callback michael@0: // allows call-time arguments. You bind a pointer to the object michael@0: // at creation time. michael@0: template michael@0: class Mutant : public MutantRunner { michael@0: public: michael@0: Mutant(T* obj, Method method, const PreBound& pb) michael@0: : obj_(obj), method_(method), pb_(pb) { michael@0: } michael@0: michael@0: // MutantRunner implementation michael@0: virtual R RunWithParams(const Params& params) { michael@0: return DispatchToMethod(this->obj_, this->method_, pb_, params); michael@0: } michael@0: michael@0: T* obj_; michael@0: Method method_; michael@0: PreBound pb_; michael@0: }; michael@0: michael@0: template michael@0: class MutantFunction : public MutantRunner { michael@0: public: michael@0: MutantFunction(Function function, const PreBound& pb) michael@0: : function_(function), pb_(pb) { michael@0: } michael@0: michael@0: // MutantRunner implementation michael@0: virtual R RunWithParams(const Params& params) { michael@0: return DispatchToFunction(function_, pb_, params); michael@0: } michael@0: michael@0: Function function_; michael@0: PreBound pb_; michael@0: }; michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: // MutantLateBind is like Mutant, but you bind a pointer to a pointer michael@0: // to the object. This way you can create actions for an object michael@0: // that is not yet created (has only storage for a pointer to it). michael@0: template michael@0: class MutantLateObjectBind : public MutantRunner { michael@0: public: michael@0: MutantLateObjectBind(T** obj, Method method, const PreBound& pb) michael@0: : obj_(obj), method_(method), pb_(pb) { michael@0: } michael@0: michael@0: // MutantRunner implementation. michael@0: virtual R RunWithParams(const Params& params) { michael@0: EXPECT_THAT(*this->obj_, testing::NotNull()); michael@0: if (NULL == *this->obj_) michael@0: return R(); michael@0: return DispatchToMethod( *this->obj_, this->method_, pb_, params); michael@0: } michael@0: michael@0: T** obj_; michael@0: Method method_; michael@0: PreBound pb_; michael@0: }; michael@0: #endif michael@0: michael@0: // Simple MutantRunner<> wrapper acting as a functor. michael@0: // Redirects operator() to MutantRunner::Run() michael@0: template michael@0: struct MutantFunctor { michael@0: explicit MutantFunctor(MutantRunner* cb) : impl_(cb) { michael@0: } michael@0: michael@0: ~MutantFunctor() { michael@0: } michael@0: michael@0: inline R operator()() { michael@0: return impl_->RunWithParams(Tuple0()); michael@0: } michael@0: michael@0: template michael@0: inline R operator()(const Arg1& a) { michael@0: return impl_->RunWithParams(Params(a)); michael@0: } michael@0: michael@0: template michael@0: inline R operator()(const Arg1& a, const Arg2& b) { michael@0: return impl_->RunWithParams(Params(a, b)); michael@0: } michael@0: michael@0: template michael@0: inline R operator()(const Arg1& a, const Arg2& b, const Arg3& c) { michael@0: return impl_->RunWithParams(Params(a, b, c)); michael@0: } michael@0: michael@0: template michael@0: inline R operator()(const Arg1& a, const Arg2& b, const Arg3& c, michael@0: const Arg4& d) { michael@0: return impl_->RunWithParams(Params(a, b, c, d)); michael@0: } michael@0: michael@0: private: michael@0: // We need copy constructor since MutantFunctor is copied few times michael@0: // inside GMock machinery, hence no DISALLOW_EVIL_CONTRUCTORS michael@0: MutantFunctor(); michael@0: linked_ptr > impl_; michael@0: }; michael@0: michael@0: // 0 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)()) { michael@0: MutantRunner* t = michael@0: new Mutant michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)()) { michael@0: MutantRunner* t = michael@0: new MutantFunction michael@0: (function, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)()) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)()) { michael@0: MutantRunner* t = michael@0: new Mutant michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)()) { michael@0: MutantRunner* t = michael@0: new MutantFunction michael@0: (function, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)()) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1, A2)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1, A2, A3)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1, A2, A3, A4)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1, A2, A3, A4, A5)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 0 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new Mutant > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new MutantFunction > michael@0: (function, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(A1, A2, A3, A4, A5, A6)) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind > michael@0: (obj, method, MakeTuple()); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1), const P1& p1) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1, A2), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1, A2, A3), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1, A2, A3, A4), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1, A2, A3, A4), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1, A2, A3, A4), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1, A2, A3, A4), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1, A2, A3, A4, A5), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1, A2, A3, A4, A5), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1, A2, A3, A4, A5), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4, A5), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1, A2, A3, A4, A5), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4, A5), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 1 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, A1, A2, A3, A4, A5, A6), const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2), const P1& p1, const P2& p2) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1, X2), const P1& p1, const P2& p2) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2), const P1& p1, const P2& p2) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1, X2), const P1& p1, const P2& p2) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1), const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1), const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1), const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1, A2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1, A2), const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1, A2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1, A2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1, A2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1, A2), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1, A2, A3), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1, A2, A3), const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1, A2, A3), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1, A2, A3), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 2 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, A1, A2, A3, A4, A5, A6), const P1& p1, michael@0: const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1, X2, X3), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1, A2), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1, A2, A3), const P1& p1, const P2& p2, michael@0: const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 3 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, A1, A2, A3, A4, A5, A6), const P1& p1, michael@0: const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1, A2), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1, A2, A3, A4, A5), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, michael@0: A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, michael@0: A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 4 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, michael@0: A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, A1, A2, A3, A4, michael@0: A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1, A2, A3, A4), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4, A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4, A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 5 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4, A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, A1, A2, A3, michael@0: A4, A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 0 michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6), const P1& p1, const P2& p2, michael@0: const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner* t = michael@0: new Mutant, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner* t = michael@0: new MutantFunction, Tuple0> michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner* t = michael@0: new MutantLateObjectBind, Tuple0> michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 1 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple1 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple1 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 2 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1, A2), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple2 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple2 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 3 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1, A2, A3), const P1& p1, michael@0: const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1, A2, A3), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple3 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple3 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 4 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple4 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple4 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 5 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, michael@0: A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, A5), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, michael@0: A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4, A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, michael@0: A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple5 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4, A5), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple5 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: // 6 - 6 michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (*function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, A5, A6), michael@0: const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, A5, michael@0: A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, michael@0: const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: michael@0: #if defined (OS_WIN) michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T* obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4, A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new Mutant, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(R (__stdcall *function)(X1, X2, X3, X4, X5, X6, A1, A2, A3, A4, michael@0: A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantFunction, Tuple6 > michael@0: (function, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: template michael@0: inline MutantFunctor > michael@0: CreateFunctor(T** obj, R (__stdcall U::*method)(X1, X2, X3, X4, X5, X6, A1, A2, michael@0: A3, A4, A5, A6), const P1& p1, const P2& p2, const P3& p3, const P4& p4, michael@0: const P5& p5, const P6& p6) { michael@0: MutantRunner >* t = michael@0: new MutantLateObjectBind, Tuple6 > michael@0: (obj, method, MakeTuple(p1, p2, p3, p4, p5, p6)); michael@0: return MutantFunctor >(t); michael@0: } michael@0: #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING michael@0: #endif // OS_WIN michael@0: michael@0: } // namespace testing michael@0: michael@0: #endif // TESTING_GMOCK_MUTANT_H_