debian/0000755000000000000000000000000012215622526007171 5ustar debian/README.Debian0000644000000000000000000000342012165246670011237 0ustar Use of precompiled libgmock --------------------------- The Google C++ Mocking Framework uses conditional compilation for some things. Because of the C++ "One Definition Rule", gmock must be compiled with exactly the same flags as your C++ code under test. Because this is hard to manage, upstream no longer recommends using precompiled libraries. Using gmock with your project ----------------------------- See the upstream README for instructions on using gmock with your project. The sources for libgmock are installed into /usr/src/gmock. With this Debian package something like the following should be enough to build a static library (which also includes gtest): g++ -I/usr/src/gmock -c /usr/src/gmock/src/gmock-all.cc g++ -I/usr/src/gtest -c /usr/src/gtest/src/gtest-all.cc ar -rv libgmock.a gmock-all.o gtest-all.o (this text is an adapted version of the readme in the libgtest-dev package by Steve M. Robbins ) -- Fredrik Hallenberg , Wed, 6 Jul 2011 10:46:51 +0200 Using gmock with cmake project ------------------------------ You can just do something along those lines (still enabling overriding the paths): Note that by default, it will use the internal gtest/ shipped with google-mock to keep them in sync # Build with system gmock and embedded gtest set (GMOCK_INCLUDE_DIR "/usr/include/gmock/include" CACHE PATH "gmock source include directory") set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory") set (GTEST_INCLUDE_DIR "${GMOCK_SOURCE_DIR}/gtest/include" CACHE PATH "gtest source include directory") add_subdirectory(${GMOCK_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}/gmock") include_directories ( ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) And then use those different targets (gtest, gmock and gmock_main) debian/source/0000755000000000000000000000000011354437717010502 5ustar debian/source/format0000644000000000000000000000001411354437717011710 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000421111605021230011105 0ustar This work was packaged for Debian by: Fredrik Hallenberg 2010-03-30 It was downloaded from: http://code.google.com/p/googlemock/downloads/ Upstream Author: Zhanyong Wan Copyright: Copyright 2008, Google Inc. All rights reserved. License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Please note that code under scripts/generator/ is from the cppclean project (http://code.google.com/p/cppclean/) and under the Apache License: see "/usr/share/common-licenses/Apache". The Debian packaging is: Copyright (C) 2010 Fredrik Hallenberg and is licensed under the GPL version 3, see "/usr/share/common-licenses/GPL-3". debian/google-mock.manpages0000644000000000000000000000002311605114760013102 0ustar debian/gmock_gen.1 debian/changelog0000644000000000000000000000674212215622511011046 0ustar google-mock (1.6.0+svn437-0ubuntu5) saucy; urgency=low * No change rebuild to gain python:any dependency, britney now knows about that. -- Dmitrijs Ledkovs Mon, 16 Sep 2013 16:35:37 +0100 google-mock (1.6.0+svn437-0ubuntu4) saucy; urgency=low * Revert doko's depends on python:any, britney doesn't understand it -- Sebastien Bacher Mon, 26 Aug 2013 11:06:12 +0200 google-mock (1.6.0+svn437-0ubuntu3) saucy; urgency=low * Make google-mock Multi-Arch: same (even the generated files look like the same). Alternative would be M-A: foreign, or just provide an architecture independent package. * Depend on python:any. -- Matthias Klose Wed, 07 Aug 2013 14:05:04 +0200 google-mock (1.6.0+svn437-0ubuntu2) saucy; urgency=low * Since this package includes its own copy of gtest, it shouldn't depend on gtest. Otherwise it's hard to mask /usr/include with /usr/src/gmock/gtest/include, and results in build-failures since this package is not compatible with older gtest. -- Dmitrijs Ledkovs Fri, 02 Aug 2013 15:23:28 +0100 google-mock (1.6.0+svn437-0ubuntu1) saucy; urgency=low [ Matthias Klose ] * Merge with Debian, discard the Ubuntu changes. * Build using dh_python2. [ Didier Roche ] * New upstream snapshot (LP: #1185265) * Remove explicit build with external gtest (not anymore supported upstream) * Add debian/patches/include_system_path.patch to reinclude system path in mock * Include python build-dep as built with dh_python2 * Add missing cmake build-dep * Ship CMakeLists.txt as a convenience for other packages using gmock and cmake and update debian/README.Debian with an example to use it * Ship gtest internal version with google-mock, as the snapshot doesn't work with the system old gtest, ignore during installation some project files * debian/patches/support_gcc_4.7.patch: support older gcc with C++11 (disabled for now) -- Didier Roche Thu, 04 Jul 2013 09:54:08 +0200 google-mock (1.6.0-1) unstable; urgency=low * New upstream release (closes: #631676) As of this version upstream does not recommend using precompiled libraries so the package now only contains sources and includes. See the README.Debian file for instructions on how to build your own gmock library. -- Fredrik Hallenberg Wed, 06 Jul 2011 09:31:47 +0200 google-mock (1.5.0-3) unstable; urgency=low * Removed .la-files (closes: #621241) -- Fredrik Hallenberg Tue, 31 May 2011 08:52:15 +0200 google-mock (1.5.0-2) unstable; urgency=low * Improve sloppy linking (closes: #615727) -- Fredrik Hallenberg Tue, 01 Mar 2011 22:11:28 +0100 google-mock (1.5.0-1) unstable; urgency=low * New upstream release (Closes: #613519) -- Fredrik Hallenberg Fri, 18 Feb 2011 08:15:43 +0100 google-mock (1.4.0-3) unstable; urgency=low * Quick fix for test failure on big endian architectures (Closes: #580514) -- Fredrik Hallenberg Mon, 17 May 2010 20:06:27 +0200 google-mock (1.4.0-2) unstable; urgency=low * Depend on libgtest instead of building internal version (Closes: #580770) -- Fredrik Hallenberg Sun, 16 May 2010 06:56:38 +0200 google-mock (1.4.0-1) unstable; urgency=low * Initial release (Closes: #575953) -- Fredrik Hallenberg Tue, 30 Mar 2010 20:15:41 +0200 debian/control0000644000000000000000000000246412200433567010601 0ustar Source: google-mock Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Fredrik Hallenberg Build-Depends: debhelper (>= 7.0.50~), cmake, python Standards-Version: 3.9.2 Homepage: http://code.google.com/p/googlemock/ Package: google-mock Architecture: any Multi-Arch: same Depends: ${misc:Depends}, ${python:Depends} Description: Google's framework for writing and using C++ mock classes Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind, it can help you derive better designs of your system and write better tests. . Google Mock: . - provides a declarative syntax for defining mocks, - can easily define partial (hybrid) mocks, which are a cross of real and mock objects, - handles functions of arbitrary types and overloaded functions, - comes with a rich set of matchers for validating function arguments, - uses an intuitive syntax for controlling the behavior of a mock, - does automatic verification of expectations (no record-and-replay needed), - allows arbitrary (partial) ordering constraints on function calls to be expressed, - lets a user extend it by defining new matchers and actions. - does not use exceptions, and - is easy to learn and use. debian/gmock_gen.10000644000000000000000000000270611361653254011214 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH GMOCK_GEN 1 "2010-04-15" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME gmock_gen \- program to generate gmock header files .SH SYNOPSIS .B gmock_gen .RI " files" ... .br .SH DESCRIPTION This manual page documents briefly the .B gmock_gen commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. This program will read in a C++ source file and output the Google Mock classes for the specified classes. If no class is specified, all classes in the source file are emitted. .br The program is documented fully by .IR "http://code.google.com/p/googlemock/" .SH AUTHOR gmock_gen was written by nnorwitz@gmail.com. .PP This manual page was written by Fredrik Hallenberg , for the Debian project (and may be used by others). debian/rules0000755000000000000000000000056112206615201010243 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_auto_install: true override_dh_install: dh_install -XLICENSE -X*.sln -X*proj for f in $$(ls debian/google-mock/usr/bin/*.py); do mv $$f $$(echo $$f | sed s/\.py//); done chmod a-x debian/google-mock/usr/share/gmock/cpp/* debian/watch0000644000000000000000000000046011354440406010220 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://code.google.com/p/googlemock/downloads/list gmock-(.*).tar.bz2 debian/clean0000644000000000000000000000015511527421575010205 0ustar test/*.pyc core gtest/test/*.pyc gtest/scripts/*.pyc gtest/core scripts/generator/cpp/*.pyc debian/substvars debian/google-mock.install0000644000000000000000000000026612165235035012767 0ustar scripts/generator/gmock_gen.py usr/bin scripts/generator/cpp usr/share/gmock/ include/gmock usr/include src/*.cc usr/src/gmock/src/ CMakeLists.txt usr/src/gmock gtest usr/src/gmock debian/patches/0000755000000000000000000000000012165270762010625 5ustar debian/patches/support_gcc_4.7.patch0000644000000000000000000000210112165266353014561 0ustar === modified file 'gmock/include/gmock/gmock-generated-nice-strict.h' --- gmock/include/gmock/gmock-generated-nice-strict.h 2013-06-18 14:04:37 +0000 +++ gmock/include/gmock/gmock-generated-nice-strict.h 2013-06-18 16:17:19 +0000 @@ -163,7 +163,7 @@ internal::ImplicitCast_(this)); } - virtual ~NiceMock() { + virtual ~NiceMock() noexcept(noexcept(((MockClass*)0)->~MockClass())) { ::testing::Mock::UnregisterCallReaction( internal::ImplicitCast_(this)); } @@ -259,7 +259,7 @@ internal::ImplicitCast_(this)); } - virtual ~NaggyMock() { + virtual ~NaggyMock() noexcept(noexcept(((MockClass*)0)->~MockClass())) { ::testing::Mock::UnregisterCallReaction( internal::ImplicitCast_(this)); } @@ -355,7 +355,7 @@ internal::ImplicitCast_(this)); } - virtual ~StrictMock() { + virtual ~StrictMock() noexcept(noexcept(((MockClass*)0)->~MockClass())) { ::testing::Mock::UnregisterCallReaction( internal::ImplicitCast_(this)); } debian/patches/include_system_path.patch0000644000000000000000000000125312165225614015706 0ustar Index: google-mock-1.6.0+svn437-1ubuntu1/scripts/generator/gmock_gen.py =================================================================== --- google-mock-1.6.0+svn437-1ubuntu1.orig/scripts/generator/gmock_gen.py 2013-07-04 09:59:13.957311971 +0200 +++ google-mock-1.6.0+svn437-1ubuntu1/scripts/generator/gmock_gen.py 2013-07-04 10:00:09.489310007 +0200 @@ -24,6 +24,8 @@ if __name__ == '__main__': # Add the directory of this script to the path so we can import gmock_class. sys.path.append(os.path.dirname(__file__)) + # Add system path as well + sys.path.append("/usr/share/gmock") from cpp import gmock_class # Fix the docstring in case they require the usage. debian/patches/series0000644000000000000000000000006112165270762012037 0ustar include_system_path.patch #support_gcc_4.7.patch debian/docs0000644000000000000000000000002411355036727010046 0ustar README CONTRIBUTORS debian/compat0000644000000000000000000000000211354437717010400 0ustar 7