00001 00009 /************************************************************************** 00010 00011 begin : Sat Mar 05 2005 00012 copyright : (C) 2002-2010 by Ewald Arnold 00013 email : mockpp at ewald-arnold dot de 00014 00015 This program is free software; you can redistribute it and/or modify 00016 it under the terms of the GNU Lesser General Public License as 00017 published by the Free Software Foundation; either version 2 of the License, 00018 or (at your option) any later version. 00019 00020 This program is distributed in the hope that it will be useful, 00021 but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 GNU General Public License for more details. 00024 00025 You should have received a copy of the GNU Lesser General Public License 00026 along with this program; if not, write to the Free Software 00027 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 00029 **/ 00030 00031 #define MOCKPP_NEED_EXPORTS 00032 #include <mockpp/mockpp.h> // always first 00033 00034 #include <mockpp/MixedMockObject.h> 00035 00036 00037 MOCKPP_NS_START 00038 00039 00040 MOCKPP_API_IMPL0 MixedMockObject::MixedMockObject(const String &name, VerifiableList *parent) 00041 : MockObject(name, parent) 00042 , VisitableMockObjectBase(name+MOCKPP_PCHAR("/Visitable"), parent) 00043 , ChainableMockObjectBase(name+MOCKPP_PCHAR("/Chainable")) 00044 { 00045 } 00046 00047 00048 MOCKPP_API_IMPL0 MixedMockObject::~MixedMockObject() 00049 { 00050 } 00051 00052 00053 MOCKPP_API_IMPL(void) MixedMockObject::verify() 00054 { 00055 MockObject::verify(); 00056 visitableVerify(); 00057 chainableVerify(); 00058 } 00059 00060 00061 MOCKPP_API_IMPL(void) MixedMockObject::reset() 00062 { 00063 MockObject::reset(); 00064 visitableReset(); 00065 chainableReset(); 00066 } 00067 00068 00069 MOCKPP_NS_END