reporter.h
Go to the documentation of this file.
1 // HippoMocks, a library for using mocks in unit testing of C++ code.
2 // Copyright (C) 2008, Bas van Tiel, Christian Rexwinkel, Mike Looijmans,
3 // Peter Bindels
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 // You can also retrieve it from http://www.gnu.org/licenses/lgpl-2.1.html
20 
21 #ifndef HIPPOMOCKS_REPORTER_H
22 #define HIPPOMOCKS_REPORTER_H
23 
24 class Call;
25 
26 class Reporter
27 {
28 public:
29  virtual void CallMissing(Call &call, MockRepository &repo) = 0;
30  virtual void ExpectationExceeded(Call &call, MockRepository &repo, const std::string &args, const char *funcName) = 0;
31  virtual void FunctionCallToZombie(MockRepository &repo, const std::string &args) = 0;
32  virtual void InvalidBaseOffset(size_t baseOffset, MockRepository &repo) = 0;
33  virtual void InvalidFuncIndex(size_t funcIndex, MockRepository &repo) = 0;
34  virtual void NoExpectationMatches(MockRepository &repo, const std::string &args, const char *funcName) = 0;
35  virtual void NoResultSetUp(Call &call, MockRepository &repo, const std::string &args, const char *funcName) = 0;
36  virtual void UnknownFunction(MockRepository &repo) = 0;
37  virtual void TestStarted() = 0;
38  virtual void TestFinished() = 0;
39 };
40 
42 #endif
virtual void InvalidBaseOffset(size_t baseOffset, MockRepository &repo)=0
virtual void CallMissing(Call &call, MockRepository &repo)=0
Reporter * GetDefaultReporter()
virtual void UnknownFunction(MockRepository &repo)=0
virtual void FunctionCallToZombie(MockRepository &repo, const std::string &args)=0
virtual void NoResultSetUp(Call &call, MockRepository &repo, const std::string &args, const char *funcName)=0
virtual void TestFinished()=0
virtual void NoExpectationMatches(MockRepository &repo, const std::string &args, const char *funcName)=0
virtual void TestStarted()=0
virtual void ExpectationExceeded(Call &call, MockRepository &repo, const std::string &args, const char *funcName)=0
virtual void InvalidFuncIndex(size_t funcIndex, MockRepository &repo)=0