1
/** \file throttle.h */ // -*-c++-*-
4
// Copyright (C) 2010 Daniel Burrows
6
// This program is free software; you can redistribute it and/or
7
// modify it under the terms of the GNU General Public License as
8
// published by the Free Software Foundation; either version 2 of the
9
// License, or (at your option) any later version.
11
// This program is distributed in the hope that it will be useful, but
12
// WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
16
// You should have received a copy of the GNU General Public License
17
// along with this program; see the file COPYING. If not, write to
18
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
// Boston, MA 02111-1307, USA.
21
#ifndef APTITUDE_UTIL_MOCKS_THROTTLE_H
22
#define APTITUDE_UTIL_MOCKS_THROTTLE_H
25
#include <generic/util/throttle.h>
28
#include <gmock/gmock.h>
36
/** \brief Mock implementation of aptitude::util::throttle. */
37
class throttle : public aptitude::util::throttle
40
MOCK_METHOD0(update_required, bool());
41
MOCK_METHOD0(reset_timer, void());
47
#endif // APTITUDE_UTIL_MOCKS_THROTTLE_H