~ubuntu-branches/ubuntu/vivid/aptitude/vivid

« back to all changes in this revision

Viewing changes to src/generic/util/mocks/throttle.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-22 12:32:56 UTC
  • mfrom: (1.8.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110622123256-8aox9w9ch3x72dci
Tags: 0.6.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/05aptitude: never autoremove kernels
  - drop aptitude-doc to Suggests
  - 03_branding.dpatch: ubuntu branding
  - 04_changelog.dpatch: take changelogs from changelogs.ubuntu.com
  - 09_ubuntu_fortify_source.dpatch: Suppress a number of warnings (turned
    into errors by -Werror) triggered by Ubuntu's default of
    -D_FORTIFY_SOURCE=2.
  - 11_ubuntu_uses_sudo.dpatch: fix status line of 'Become root' menu entry
    to not refer to su.
  - 12_point_manpage_to_doc_package.dpatch: point Finnish manpage to the
    correct place for further info
  - 14_html2text_preferred.dpatch: switch back to html2text in favor of
    elinks, since html2text is in main and elinks isn't.
* dropped 01_intltool_update.dpatch
* updated 15_ftbfs_new_apt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** \file throttle.h */  // -*-c++-*-
 
2
 
 
3
 
 
4
// Copyright (C) 2010 Daniel Burrows
 
5
//
 
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.
 
10
//
 
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.
 
15
//
 
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.
 
20
 
 
21
#ifndef APTITUDE_UTIL_MOCKS_THROTTLE_H
 
22
#define APTITUDE_UTIL_MOCKS_THROTTLE_H
 
23
 
 
24
// Local includes:
 
25
#include <generic/util/throttle.h>
 
26
 
 
27
// System includes:
 
28
#include <gmock/gmock.h>
 
29
 
 
30
namespace aptitude
 
31
{
 
32
  namespace util
 
33
  {
 
34
    namespace mocks
 
35
    {
 
36
      /** \brief Mock implementation of aptitude::util::throttle. */
 
37
      class throttle : public aptitude::util::throttle
 
38
      {
 
39
      public:
 
40
        MOCK_METHOD0(update_required, bool());
 
41
        MOCK_METHOD0(reset_timer, void());
 
42
      };
 
43
    }
 
44
  }
 
45
}
 
46
 
 
47
#endif // APTITUDE_UTIL_MOCKS_THROTTLE_H