]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/log
googletest.git
5 years agoMerge pull request #3094 from chuckatkins:update-deprecated-cmake-version master
Derek Mauro [Mon, 28 Dec 2020 18:32:06 +0000 (13:32 -0500)]
Merge pull request #3094 from chuckatkins:update-deprecated-cmake-version

PiperOrigin-RevId: 349296827

5 years agoGoogletest export
Abseil Team [Mon, 21 Dec 2020 20:41:17 +0000 (15:41 -0500)]
Googletest export

Give each of Naggy/Nice/StrictMock a base class whose constructor runs before
the mocked class's constructor, and a destructor that runs after the mocked
class's destructor, so that any mock methods run in either the constructor or
destructor use the same strictness as other calls.

PiperOrigin-RevId: 348511612

5 years agoGoogletest export
dmauro [Tue, 15 Dec 2020 17:40:46 +0000 (12:40 -0500)]
Googletest export

Internal Change

PiperOrigin-RevId: 347631521

5 years agoGoogletest export
Abseil Team [Fri, 11 Dec 2020 19:20:17 +0000 (14:20 -0500)]
Googletest export

Add static_asserts that verify that no class hierarchy contains more than one
of {NiceMock, NaggyMock, StrictMock}. This sort of nesting has always been
disallowed, but this CL adds a compile-time check to prevent it.

PiperOrigin-RevId: 347037822

5 years agoGoogletest export
Abseil Team [Thu, 10 Dec 2020 16:15:34 +0000 (11:15 -0500)]
Googletest export

Remove ZX_WAIT_ASYNC_ONCE flag

It is deprecated and will soon be removed in fuchsia source.
It's currently defined as 0 and references should be changed to 0.

PiperOrigin-RevId: 346787585

5 years agoGoogletest export
dmauro [Thu, 10 Dec 2020 15:52:16 +0000 (10:52 -0500)]
Googletest export

Fix a missing Bazel build dependency

PiperOrigin-RevId: 346783462

5 years agoGoogletest export
Abseil Team [Tue, 8 Dec 2020 17:37:32 +0000 (12:37 -0500)]
Googletest export

Introduce a new `Address` matcher to gmock.

PiperOrigin-RevId: 346344591

5 years agoGoogletest export
Abseil Team [Mon, 7 Dec 2020 21:22:17 +0000 (16:22 -0500)]
Googletest export

Fix errata in gmock cook_book.md ON_CALL example

PiperOrigin-RevId: 346165890

5 years agoGoogletest export
Abseil Team [Mon, 7 Dec 2020 21:17:26 +0000 (16:17 -0500)]
Googletest export

Add a `Pointer` matcher as an analog to `Pointee`.

Similar to `Pointee`, `Pointer` works with either raw or smart pointers and
allows creating a matcher like Pointer(Eq(foo)) for smart pointers.

PiperOrigin-RevId: 346164768

5 years agoMerge pull request #3159 from malcops:master
Andy Getz [Mon, 7 Dec 2020 23:04:04 +0000 (18:04 -0500)]
Merge pull request #3159 from malcops:master

PiperOrigin-RevId: 346160291

5 years agoBump CMake minimum to 2.8.12
Chuck Atkins [Fri, 30 Oct 2020 15:31:54 +0000 (11:31 -0400)]
Bump CMake minimum to 2.8.12

5 years agoMerge pull request #3044 from manavrion:improve_file_path_normalize
vslashg [Tue, 27 Oct 2020 14:17:25 +0000 (10:17 -0400)]
Merge pull request #3044 from manavrion:improve_file_path_normalize

PiperOrigin-RevId: 339242159

5 years agoGoogletest export
Abseil Team [Mon, 26 Oct 2020 17:01:10 +0000 (13:01 -0400)]
Googletest export

I'm not sure how this relates to the GitHub repo. Could you please advise?

PiperOrigin-RevId: 339060470

5 years agoMerge pull request #3073 from ArthurSonzogni:fix-typo
Gennadiy Rozental [Thu, 22 Oct 2020 07:43:30 +0000 (03:43 -0400)]
Merge pull request #3073 from ArthurSonzogni:fix-typo

PiperOrigin-RevId: 338093064

5 years agoFix typo "definedin in" => "defined in"
Arthur Sonzogni [Tue, 20 Oct 2020 13:45:52 +0000 (15:45 +0200)]
Fix typo "definedin in" => "defined in"

Replace "definedin in" by "defined in" in files:
- googletest/src/gtest.cc
- googletest/test/googletest-output-test-golden-lin.txt

5 years agoGoogletest export
Abseil Team [Fri, 16 Oct 2020 03:30:37 +0000 (23:30 -0400)]
Googletest export

Fix typo in the "Assertion Placement" section

PiperOrigin-RevId: 337435223

5 years agoGoogletest export
Abseil Team [Thu, 15 Oct 2020 21:14:57 +0000 (17:14 -0400)]
Googletest export

Fix some issues when running fuse_gmock_files.

The module path should be updated before importing `fuse_gtest_files`, since
the script may not run from the googletest repo root. We also need a non-frozen
set in order to track progress.

PiperOrigin-RevId: 337380466

5 years agoGoogletest export
dmauro [Thu, 15 Oct 2020 16:38:46 +0000 (12:38 -0400)]
Googletest export

Fixes build warnings from previous CL
Add CMake to internal presubmit to prevent these

PiperOrigin-RevId: 337325504

5 years agoMerge pull request #3042 from Aralox:Issue-2135-modify-mock-template-args-AX-to-TArgX
Derek Mauro [Thu, 15 Oct 2020 17:32:33 +0000 (13:32 -0400)]
Merge pull request #3042 from Aralox:Issue-2135-modify-mock-template-args-AX-to-TArgX

PiperOrigin-RevId: 337217118

5 years agoGoogletest export
Abseil Team [Wed, 14 Oct 2020 20:55:07 +0000 (16:55 -0400)]
Googletest export

Add ::testing::FieldsAre matcher for objects that support get<> and structured bindings.
PiperOrigin-RevId: 337165285

5 years agoImprove FilePath::Normalize method
Ruslan Manaev [Wed, 7 Oct 2020 18:39:50 +0000 (23:39 +0500)]
Improve FilePath::Normalize method

5 years agoIssue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2...
Aralox [Wed, 7 Oct 2020 07:27:41 +0000 (18:27 +1100)]
Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files

5 years agoGoogletest export
Abseil Team [Wed, 30 Sep 2020 01:52:15 +0000 (21:52 -0400)]
Googletest export

Update faq.md on underscore to mention `DISABLED_` prefix.

PiperOrigin-RevId: 334507963

5 years agoGoogletest export
dmauro [Tue, 29 Sep 2020 19:27:38 +0000 (15:27 -0400)]
Googletest export

Fix undefined pointer comparison

PiperOrigin-RevId: 334436975

5 years agoGoogletest export
Abseil Team [Tue, 29 Sep 2020 18:58:21 +0000 (14:58 -0400)]
Googletest export

Update comment to suggest using SetUpTestSuite and TearDownTestSuite.

PiperOrigin-RevId: 334430329

5 years agoMerge pull request #3024 from Thomas-Barbier-1A:fix_warning_maybe_unintialized
Andy Getz [Wed, 30 Sep 2020 00:47:54 +0000 (20:47 -0400)]
Merge pull request #3024 from Thomas-Barbier-1A:fix_warning_maybe_unintialized

PiperOrigin-RevId: 334391149

5 years agoMerge pull request #3027 from keshavgbpecdelhi:patch-2
Andy Getz [Wed, 30 Sep 2020 00:47:44 +0000 (20:47 -0400)]
Merge pull request #3027 from keshavgbpecdelhi:patch-2

PiperOrigin-RevId: 334384310

5 years agoGoogletest export
Abseil Team [Fri, 25 Sep 2020 16:14:18 +0000 (12:14 -0400)]
Googletest export

Fix typo

PiperOrigin-RevId: 333745750

5 years agoUpdate cook_book.md
keshavgbpecdelhi [Sun, 27 Sep 2020 09:57:14 +0000 (15:27 +0530)]
Update cook_book.md

Please note that changing the default value for a type can make [you]* test.....
Here "you" word doesn't make sense.. rather "your" seems to make it understandable.

5 years agoFix warning maybe-uninitialized
tbarbier [Thu, 24 Sep 2020 14:51:06 +0000 (16:51 +0200)]
Fix warning maybe-uninitialized

5 years agoGoogletest export
Abseil Team [Fri, 18 Sep 2020 13:10:49 +0000 (09:10 -0400)]
Googletest export

Simplify FooConcrete static calls in googlemock cookbook.

PiperOrigin-RevId: 332437041