Alyssa Wilk
fa5d3b3845
Applying lint checks from upstream google3
8 years ago
Alyssa Wilk
a2803bc37d
Handling invalid flag values
8 years ago
Alyssa Wilk
6e1970e237
Adding a flag option to change the default mock type
8 years ago
Nico Weber
09fd5b3ebf
Use std::string and ::string explicitly in gtest and gmock code.
...
This merges a Google-internal change (117235625).
Original CL description:
This CL was created manually in about an hour with sed, a Python script
to find all the places unqualified 'string' was mentioned, and some help
from Emacs to add the "std::" qualifications, plus a few manual tweaks.
8 years ago
Jacob Meacham
d4aa34b05d
Fix link that's returned when running tests. #714
9 years ago
Billy Donahue
affb09edf0
move googlemock files into googlemock/ subdir
10 years ago
kosak
5625dd333a
Suppresses the stack trace in a warning for uninteresting call by default; the stack trace will still be printed when --gmock_verbose=info is printed.
10 years ago
kosak
d478a1f46d
In C++11 and above, makes a mock method whose return type is default
...
constructible return a default-constructed value by default.
10 years ago
kosak
04ce8521f4
Adds a note in the "uninteresting mock method call" warning to advise people how to handle the warning.
...
Clarifies the purpose of utilities in gmock-port.h and adds guidance w.r.t. gmock-port.h vs gtest-port.h.
Pulls in gtest r674.
11 years ago
zhanyong.wan
6e0fba4de0
fixes the bug reported by Andrzej Jarzabek where 2 gmock tests fail when built with VS
12 years ago
zhanyong.wan
c10a35a26a
Fixes some compatibility issues with STLport.
12 years ago
zhanyong.wan
c896504e41
Improves the tests for nice, naggy, and strict mocks.
12 years ago
zhanyong.wan
edd4ab4945
Makes googlemock throw a runtime_error instead of abort when a mock
...
method with no default value is invoked (if exceptions are enabled).
12 years ago
jgm
38513a8bb1
Unfortunately, the svn repo is a bit out of date. This commit contains 8
...
changes that haven't made it to svn. The descriptions of each change are listed
below.
- Fixes some python shebang lines.
- Add ElementsAreArray overloads to gmock. ElementsAreArray now makes a copy of
its input elements before the conversion to a Matcher. ElementsAreArray can
now take a vector as input. ElementsAreArray can now take an iterator pair as
input.
- Templatize MatchAndExplain to allow independent string types for the matcher
and matchee. I also templatized the ConstCharPointer version of
MatchAndExplain to avoid calls with "char*" from using the new templated
MatchAndExplain.
- Fixes the bug where the constructor of the return type of ElementsAre() saves
a reference instead of a copy of the arguments.
- Extends ElementsAre() to accept arrays whose sizes aren't known.
- Switches gTest's internal FilePath class from testing::internal::String to
std::string. testing::internal::String was introduced when gTest couldn't
depend on std::string. It's now deprecated.
- Switches gTest & gMock from using testing::internal::String objects to
std::string. Some static methods of String are still in use. We may be able
to remove some but not all of them. In particular, String::Format() should
eventually be removed as it truncates the result at 4096 characters, often
causing problems.
12 years ago
vladlosev
9bcb5f9146
Fixes a lock reentrancy when destroying a mock causes destruction of another mock (issue 79) (by Aaron Jacobs).
14 years ago
zhanyong.wan
658ac0b71a
Indents preprocessor directives.
14 years ago
zhanyong.wan
ed6c9277bb
Makes Google Mock compile much faster and use much less memory; reviewed by Nico Weber. This fixes issue 68.
14 years ago
vladlosev
e5121b5a82
Improves cross-platform compatibility of gmock output. This fixes issue 135.
14 years ago
zhanyong.wan
53e08c44dd
Include gtest and gmock headers as user headers instead of system headers.
15 years ago
zhanyong.wan
2516f60da9
Publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); casts char to unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); fixes the VC projects (by Fredrik Roubert).
15 years ago
zhanyong.wan
c6333dca1c
Picks up gtest r453.
15 years ago
vladlosev
76c1c612e2
Fixes tests leaking altered values of GMOCK_FLAG(verbose) (issue 110).
15 years ago
vladlosev
54af9ba50a
Adds a synchronization test.
15 years ago
zhanyong.wan
470df42bad
Enables tests depending on stdout capturing (by Vlad Losev).
15 years ago
zhanyong.wan
d14aaed74b
Enables regex matchers on all platforms.
15 years ago
zhanyong.wan
32de5f5376
Fixes a slew of compiler warnings and turns on "warning as error" in the scons build.
15 years ago
vladlosev
6c54a5e1f9
Enables more verbose output for expectations (by Sverre Sundsdal); Fixes information loss warning when compiled by VC8.0 with /Wp64; Skips two tests on Windows Mobile that don't work there.
16 years ago
zhanyong.wan
bbd6e105e7
Picks up gtest r314.
16 years ago
zhanyong.wan
04d6ed817e
Simplifies the tests using EXPECT_DEATH_IF_SUPPORTED.
16 years ago
zhanyong.wan
2b43a9ecd1
Adds mutable_impl() and impl() to PolymorphicMatcher (by Zhanyong Wan); Enables gMock to compile with VC 7.1 (by Vlad Losev).
16 years ago
zhanyong.wan
9571b28675
Removes duplicated definition of SetArgumentPointee (by Vlad Losev); Makes gmock compilable on platforms that don't have ::abort() (by Acadeli Checa); Fixes compatibility with Symbian's STLport (by Acadeli Checa).
16 years ago
zhanyong.wan
41b9b0b561
Implements Expectation, ExpectationSet, and After for specifying expectation orders.
16 years ago
zhanyong.wan
81476f2f90
Makes gmock-spec-builders_test.cc and gmock-internal-utils_test.cc work where both ::string and ::std::string are defined.
16 years ago
zhanyong.wan
4cd148e588
Removes the .WithArguments() clause from ON_CALL and EXPECT_CALL.
16 years ago
zhanyong.wan
bf55085d45
Implements .With() as a synonym of .WithArguments(); implements AllArgs(m) as a synonym of m; relies on gtest-port to #include tuple; fixes a compatibility with Symbian.
16 years ago
zhanyong.wan
9413f2ff61
Avoids unnecessary printing of call into to internal buffers;
...
Made the universal value printer safer when printing char[];
Removed duplicated code in InvokeWith;
Improved gmock_doctor.py.
16 years ago
zhanyong.wan
df35a763b9
Implements --gmock_catch_leaked_mocks and Mock::AllowLeak.
16 years ago
zhanyong.wan
6f14769e86
Allows a mock object to delete itself in an action. By Simon Bowden.
16 years ago
zhanyong.wan
652540a278
Cleans up macro definitions.
16 years ago
zhanyong.wan
5b95fa7b16
Improves error messages for undefined return value (by Sverre Sundsdal); improves gmock_doctor.
16 years ago
shiqian
e35fdd936d
Initial drop of Google Mock. The files are incomplete and thus may not build correctly yet.
16 years ago