Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
ccedc1c9
Commit
ccedc1c9
authored
Aug 09, 2010
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes some gmock internal macros; sorts the file lists in Makefile.am; picks up gtest r454.
parent
c6333dca
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
31 deletions
+24
-31
Makefile.am
Makefile.am
+19
-15
gmock-generated-actions.h
include/gmock/gmock-generated-actions.h
+1
-1
gmock-generated-actions.h.pump
include/gmock/gmock-generated-actions.h.pump
+1
-1
gmock-generated-function-mockers.h
include/gmock/gmock-generated-function-mockers.h
+1
-1
gmock-generated-function-mockers.h.pump
include/gmock/gmock-generated-function-mockers.h.pump
+1
-1
gmock-spec-builders.h
include/gmock/gmock-spec-builders.h
+1
-1
gmock-internal-utils.h
include/gmock/internal/gmock-internal-utils.h
+0
-11
No files found.
Makefile.am
View file @
ccedc1c9
...
@@ -29,7 +29,7 @@ lib_LTLIBRARIES = lib/libgmock.la lib/libgmock_main.la
...
@@ -29,7 +29,7 @@ lib_LTLIBRARIES = lib/libgmock.la lib/libgmock_main.la
lib_libgmock_la_SOURCES
=
src/gmock-all.cc
lib_libgmock_la_SOURCES
=
src/gmock-all.cc
pkginclude_HEADERS
=
include/gmock/gmock.h
\
pkginclude_HEADERS
=
\
include/gmock/gmock-actions.h
\
include/gmock/gmock-actions.h
\
include/gmock/gmock-cardinalities.h
\
include/gmock/gmock-cardinalities.h
\
include/gmock/gmock-generated-actions.h
\
include/gmock/gmock-generated-actions.h
\
...
@@ -38,7 +38,8 @@ pkginclude_HEADERS = include/gmock/gmock.h \
...
@@ -38,7 +38,8 @@ pkginclude_HEADERS = include/gmock/gmock.h \
include/gmock/gmock-generated-nice-strict.h
\
include/gmock/gmock-generated-nice-strict.h
\
include/gmock/gmock-matchers.h
\
include/gmock/gmock-matchers.h
\
include/gmock/gmock-more-actions.h
\
include/gmock/gmock-more-actions.h
\
include/gmock/gmock-spec-builders.h
include/gmock/gmock-spec-builders.h
\
include/gmock/gmock.h
pkginclude_internaldir
=
$(pkgincludedir)
/internal
pkginclude_internaldir
=
$(pkgincludedir)
/internal
pkginclude_internal_HEADERS
=
\
pkginclude_internal_HEADERS
=
\
...
@@ -70,34 +71,35 @@ test_gmock_spec_builders_test_LDADD = $(GTEST_LIBS) lib/libgmock.la
...
@@ -70,34 +71,35 @@ test_gmock_spec_builders_test_LDADD = $(GTEST_LIBS) lib/libgmock.la
# verifies that libgmock_main works.
# verifies that libgmock_main works.
TESTS
+=
test
/gmock_link_test
TESTS
+=
test
/gmock_link_test
check_PROGRAMS
+=
test
/gmock_link_test
check_PROGRAMS
+=
test
/gmock_link_test
test_gmock_link_test_SOURCES
=
test
/gmock_link_test.cc
\
test_gmock_link_test_SOURCES
=
\
test
/gmock_link2_test.cc
\
test
/gmock_link2_test.cc
\
test
/gmock_link_test.cc
\
test
/gmock_link_test.h
test
/gmock_link_test.h
test_gmock_link_test_LDADD
=
$(GTEST_LIBS)
lib/libgmock_main.la
test_gmock_link_test_LDADD
=
$(GTEST_LIBS)
lib/libgmock_main.la
# Tests that fused gmock files compile and work.
# Tests that fused gmock files compile and work.
TESTS
+=
test
/gmock_fused_test
TESTS
+=
test
/gmock_fused_test
check_PROGRAMS
+=
test
/gmock_fused_test
check_PROGRAMS
+=
test
/gmock_fused_test
test_gmock_fused_test_SOURCES
=
fused-src/gmock-gtest-all.cc
\
test_gmock_fused_test_SOURCES
=
\
fused-src/gmock_main
.cc
\
fused-src/gmock-gtest-all
.cc
\
fused-src/gmock/gmock.h
\
fused-src/gmock/gmock.h
\
fused-src/gmock_main.cc
\
fused-src/gtest/gtest.h
\
fused-src/gtest/gtest.h
\
test
/gmock_test.cc
test
/gmock_test.cc
test_gmock_fused_test_CPPFLAGS
=
-I
"
$(srcdir)
/fused-src"
test_gmock_fused_test_CPPFLAGS
=
-I
"
$(srcdir)
/fused-src"
# Google Mock source files that we don't compile directly.
# Google Mock source files that we don't compile directly.
GMOCK_SOURCE_INGLUDES
=
\
GMOCK_SOURCE_INGLUDES
=
\
src/gmock.cc
\
src/gmock-cardinalities.cc
\
src/gmock-cardinalities.cc
\
src/gmock-internal-utils.cc
\
src/gmock-internal-utils.cc
\
src/gmock-matchers.cc
\
src/gmock-matchers.cc
\
src/gmock-spec-builders.cc
src/gmock-spec-builders.cc
\
src/gmock.cc
EXTRA_DIST
+=
$(GMOCK_SOURCE_INGLUDES)
EXTRA_DIST
+=
$(GMOCK_SOURCE_INGLUDES)
# C++ tests that we don't compile using autotools.
# C++ tests that we don't compile using autotools.
EXTRA_DIST
+=
\
EXTRA_DIST
+=
\
test
/gmock_all_test.cc
\
test
/gmock-actions_test.cc
\
test
/gmock-actions_test.cc
\
test
/gmock-cardinalities_test.cc
\
test
/gmock-cardinalities_test.cc
\
test
/gmock-generated-actions_test.cc
\
test
/gmock-generated-actions_test.cc
\
...
@@ -108,16 +110,17 @@ EXTRA_DIST += \
...
@@ -108,16 +110,17 @@ EXTRA_DIST += \
test
/gmock-matchers_test.cc
\
test
/gmock-matchers_test.cc
\
test
/gmock-more-actions_test.cc
\
test
/gmock-more-actions_test.cc
\
test
/gmock-nice-strict_test.cc
\
test
/gmock-nice-strict_test.cc
\
test
/gmock-port_test.cc
test
/gmock-port_test.cc
\
test
/gmock_all_test.cc
# Python tests, which we don't run using autotools.
# Python tests, which we don't run using autotools.
EXTRA_DIST
+=
\
EXTRA_DIST
+=
\
test
/gmock_test_utils.py
\
test
/gmock_leak_test_.cc
\
test
/gmock_leak_test.py
\
test
/gmock_leak_test.py
\
test
/gmock_
output
_test_.cc
\
test
/gmock_
leak
_test_.cc
\
test
/gmock_output_test.py
\
test
/gmock_output_test.py
\
test
/gmock_output_test_golden.txt
test
/gmock_output_test_.cc
\
test
/gmock_output_test_golden.txt
\
test
/gmock_test_utils.py
# Nonstandard package files for distribution.
# Nonstandard package files for distribution.
EXTRA_DIST
+=
\
EXTRA_DIST
+=
\
...
@@ -127,7 +130,8 @@ EXTRA_DIST += \
...
@@ -127,7 +130,8 @@ EXTRA_DIST += \
# Pump scripts for generating Google Mock headers.
# Pump scripts for generating Google Mock headers.
# TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump.
# TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump.
EXTRA_DIST
+=
include/gmock/gmock-generated-actions.h.pump
\
EXTRA_DIST
+=
\
include/gmock/gmock-generated-actions.h.pump
\
include/gmock/gmock-generated-function-mockers.h.pump
\
include/gmock/gmock-generated-function-mockers.h.pump
\
include/gmock/gmock-generated-matchers.h.pump
\
include/gmock/gmock-generated-matchers.h.pump
\
include/gmock/gmock-generated-nice-strict.h.pump
\
include/gmock/gmock-generated-nice-strict.h.pump
\
...
@@ -151,12 +155,12 @@ EXTRA_DIST += \
...
@@ -151,12 +155,12 @@ EXTRA_DIST += \
# Microsoft Visual Studio 2005 projects.
# Microsoft Visual Studio 2005 projects.
EXTRA_DIST
+=
\
EXTRA_DIST
+=
\
msvc/gmock-spec-builders_test.vcproj
\
msvc/gmock.sln
\
msvc/gmock.sln
\
msvc/gmock.vcproj
\
msvc/gmock.vcproj
\
msvc/gmock_config.vsprops
\
msvc/gmock_config.vsprops
\
msvc/gmock_link_test.vcproj
\
msvc/gmock_link_test.vcproj
\
msvc/gmock_main.vcproj
\
msvc/gmock_main.vcproj
\
msvc/gmock-spec-builders_test.vcproj
\
msvc/gmock_test.vcproj
msvc/gmock_test.vcproj
# gmock_test.cc does not really depend on files generated by the
# gmock_test.cc does not really depend on files generated by the
...
...
include/gmock/gmock-generated-actions.h
View file @
ccedc1c9
...
@@ -1378,7 +1378,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1378,7 +1378,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
// The name of the class template implementing the action template.
// The name of the class template implementing the action template.
#define GMOCK_ACTION_CLASS_(name, value_params)\
#define GMOCK_ACTION_CLASS_(name, value_params)\
G
MOCK
_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
G
TEST
_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
#define ACTION_TEMPLATE(name, template_params, value_params)\
#define ACTION_TEMPLATE(name, template_params, value_params)\
template <GMOCK_INTERNAL_DECL_##template_params\
template <GMOCK_INTERNAL_DECL_##template_params\
...
...
include/gmock/gmock-generated-actions.h.pump
View file @
ccedc1c9
...
@@ -605,7 +605,7 @@ $if i==1 [[P]] $elif i>=2 [[P$i]]
...
@@ -605,7 +605,7 @@ $if i==1 [[P]] $elif i>=2 [[P$i]]
// The name of the class template implementing the action template.
// The name of the class template implementing the action template.
#define GMOCK_ACTION_CLASS_(name, value_params)\
#define GMOCK_ACTION_CLASS_(name, value_params)\
G
MOCK
_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
G
TEST
_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
$
range
k
0.
.
n
-
1
$
range
k
0.
.
n
-
1
...
...
include/gmock/gmock-generated-function-mockers.h
View file @
ccedc1c9
...
@@ -339,7 +339,7 @@ using internal::FunctionMocker;
...
@@ -339,7 +339,7 @@ using internal::FunctionMocker;
// The variable for mocking the given method.
// The variable for mocking the given method.
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
#define GMOCK_MOCKER_(arity, constness, Method) \
#define GMOCK_MOCKER_(arity, constness, Method) \
G
MOCK
_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
G
TEST
_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
#define GMOCK_METHOD0_(tn, constness, ct, Method, F) \
#define GMOCK_METHOD0_(tn, constness, ct, Method, F) \
...
...
include/gmock/gmock-generated-function-mockers.h.pump
View file @
ccedc1c9
...
@@ -119,7 +119,7 @@ using internal::FunctionMocker;
...
@@ -119,7 +119,7 @@ using internal::FunctionMocker;
// The variable for mocking the given method.
// The variable for mocking the given method.
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
// INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
#define GMOCK_MOCKER_(arity, constness, Method) \
#define GMOCK_MOCKER_(arity, constness, Method) \
G
MOCK
_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
G
TEST
_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
$
for
i
[[
$
for
i
[[
...
...
include/gmock/gmock-spec-builders.h
View file @
ccedc1c9
...
@@ -537,7 +537,7 @@ class InSequence {
...
@@ -537,7 +537,7 @@ class InSequence {
bool
sequence_created_
;
bool
sequence_created_
;
GTEST_DISALLOW_COPY_AND_ASSIGN_
(
InSequence
);
// NOLINT
GTEST_DISALLOW_COPY_AND_ASSIGN_
(
InSequence
);
// NOLINT
}
G
MOCK
_ATTRIBUTE_UNUSED_
;
}
G
TEST
_ATTRIBUTE_UNUSED_
;
namespace
internal
{
namespace
internal
{
...
...
include/gmock/internal/gmock-internal-utils.h
View file @
ccedc1c9
...
@@ -46,17 +46,6 @@
...
@@ -46,17 +46,6 @@
#include <gmock/internal/gmock-port.h>
#include <gmock/internal/gmock-port.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
// Concatenates two pre-processor symbols; works for concatenating
// built-in macros like __FILE__ and __LINE__.
#define GMOCK_CONCAT_TOKEN_IMPL_(foo, bar) foo##bar
#define GMOCK_CONCAT_TOKEN_(foo, bar) GMOCK_CONCAT_TOKEN_IMPL_(foo, bar)
#ifdef __GNUC__
#define GMOCK_ATTRIBUTE_UNUSED_ __attribute__ ((unused))
#else
#define GMOCK_ATTRIBUTE_UNUSED_
#endif // __GNUC__
namespace
testing
{
namespace
testing
{
namespace
internal
{
namespace
internal
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment