summaryrefslogtreecommitdiffstats
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* Add support for move-only and &&-qualified actions in WillOnce.Abseil Team2022-04-091-1/+3
| | | | | | | | | | | | This provides a type-safe way for an action to express that it wants to be called only once, or to capture move-only objects. It is a generalization of the type system-evading hack in ByMove, with the improvement that it works for _any_ action (including user-defined ones), and correctly expresses that the action can only be used with WillOnce. I'll make existing actions benefit in a future commit. PiperOrigin-RevId: 440496139 Change-Id: I4145d191cca5655995ef41360bb126c123cb41d3
* Trying to make it more clear: this is probably not about mock classes, but ↵Abseil Team2022-04-041-6/+6
| | | | | | | about mocked classes PiperOrigin-RevId: 439427291 Change-Id: I3cac035e732fb3fe4f9c314657932a55269e0416
* Clarify public access on gmock examples.Abseil Team2022-03-211-4/+4
| | | | | PiperOrigin-RevId: 436268062 Change-Id: I3161b36121f78acf920d66fe121b2f1d5e5707b9
* Merge pull request #3774 from sobczyk:mainCopybara-Service2022-03-152-6/+19
|\ | | | | | | | | PiperOrigin-RevId: 434738675 Change-Id: I7c8de4004bac6b750674d19e3e79c0695a42652e
| * Adjust documentation regarding xml and json source file location otput.Szymon Sobik2022-03-082-6/+18
|/
* Add a 3-arg overload for ResultOf() matcher that takes a description string ↵Abseil Team2022-02-101-0/+1
| | | | | | | for better error messages. PiperOrigin-RevId: 427598749 Change-Id: I8c7a5d7b2dde017641534f1c7eed8dd56c33e845
* Merge pull request #3723 from ramkumar-kr:patch-1Copybara-Service2022-01-241-2/+2
|\ | | | | | | | | PiperOrigin-RevId: 423920083 Change-Id: I5e172813387f841d5a6c56eea155b876a465d208
| * Update example to reflect the tests belowrefs/pull/3723/headRam Kumar K R2022-01-041-2/+2
| |
* | Fix reference to source file in gmock FAQDino Radakovic2022-01-141-2/+2
| | | | | | | | | | PiperOrigin-RevId: 421915817 Change-Id: I22800e8943f9eb050304c521701d4040b1b7a914
* | Fix run-on sentenceAbseil Team2022-01-121-1/+1
|/ | | | | | | dispatch. It will use the definition from the class the constructor of which PiperOrigin-RevId: 421291241 Change-Id: If81e3d6d3774edfbbb4baaec8a3cd96566b3b09c
* Clarify "package" means "Bazel package", and promote `testonly=True` rather ↵Abseil Team2021-12-231-6/+6
| | | | | | | than `testing` sub-directory. PiperOrigin-RevId: 417945818 Change-Id: I8686ee0414fb80269528677f291877a231d1c991
* Merge pull request #3684 from ludgerpaehler:patch-1Copybara-Service2021-12-201-2/+2
|\ | | | | | | | | PiperOrigin-RevId: 417474317 Change-Id: I4c84f59ba272a6bec3f992f7afae36e1c5617fad
| * Fix typo in the queue test.refs/pull/3684/headLudger Paehler2021-11-251-2/+2
| |
* | Fix typo in GoogleMock Cookbook.Abseil Team2021-12-021-1/+1
|/ | | | | PiperOrigin-RevId: 413674665 Change-Id: I466f87348390f42434a70f183efdf0557be9dddd
* Update URLs in Bazel QuickstartDerek Mauro2021-11-151-5/+5
| | | | | PiperOrigin-RevId: 410041507 Change-Id: I6ca514249a54e7fbe6d8fbf4f07317a39af40929
* Googletest exportAbseil Team2021-11-101-1/+3
| | | | | | | | Revert CL that updated example for SetUpTestSuite/TearDownTestSuite to initialize static member variables inline. It seems that non-const static data members for some reason still must be initialized out-of-line. PiperOrigin-RevId: 408913846
* Googletest exportAbseil Team2021-11-091-3/+1
| | | | | | | | Update example for SetUpTestSuite/TearDownTestSuite to use modern C++ standards. Currently it is using an outdated C++ construct (defining static member variables separately from the declaration). PiperOrigin-RevId: 408663014
* Googletest exportAbseil Team2021-11-091-0/+1
| | | | | | | | | | | | Add missing InitGoogleTest line in "Registering tests" example code Copying the original code gives the following error message """ IMPORTANT NOTICE - DO NOT IGNORE: This test program did NOT call testing::InitGoogleTest() before calling RUN_ALL_TESTS(). This is INVALID. Soon Google Test will start to enforce the valid usage. Please fix it ASAP, or IT WILL START TO FAIL. """ PiperOrigin-RevId: 408385714
* Googletest exportAbseil Team2021-11-091-2/+5
| | | | | | Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent. PiperOrigin-RevId: 407660542
* Googletest exportAbseil Team2021-11-031-0/+52
| | | | | | | | Add docs section on test sharding Fixes #3622 PiperOrigin-RevId: 405712812
* Googletest exportAbseil Team2021-10-131-0/+1
| | | | | | add missing using ::testing::DoAll when DoAll used in example PiperOrigin-RevId: 402416497
* Fix remaining typos discovered by codespellrefs/pull/3581/headChristian Clauss2021-09-241-1/+1
|
* Merge pull request #3573 from cclauss:patch-1dinord2021-09-231-3/+3
|\ | | | | | | PiperOrigin-RevId: 397998384
| * Fix typos discovered by codespellrefs/pull/3573/headChristian Clauss2021-09-161-3/+3
| |
* | Remove bazelbuild/rules_cc dependencyrefs/pull/3574/headVertexwahn2021-09-171-14/+0
|/
* Googletest exportAbseil Team2021-09-161-1/+10
| | | | | | Add a caveat section for potential memory leak with derived classes using `SetUpTestSuite`. PiperOrigin-RevId: 396986728
* Merge pull request #3531 from theidexisted:patch-1CJ Johnson2021-08-261-4/+1
|\ | | | | | | PiperOrigin-RevId: 392720416
| * Simplify example code with c++11refs/pull/3531/headtheidexisted2021-08-191-4/+1
| |
* | Googletest exportAbseil Team2021-08-201-3/+3
|/ | | | | | | | Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET Custom implementations can decide how access to flags is performed depending on the implementation of flags being used. PiperOrigin-RevId: 391971115
* typo fix gmock_cook_bookrefs/pull/3511/headBerke2021-08-051-1/+1
|
* Googletest exportAbseil Team2021-08-043-30/+25
| | | | | | Format documentation PiperOrigin-RevId: 388592443
* Googletest exportAbseil Team2021-08-041-10/+11
| | | | | | Introduce a new matcher for unescaping Base-64 strings to gmock. PiperOrigin-RevId: 388471904
* Googletest exportAbseil Team2021-08-041-2/+2
| | | | | | | | Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET Custom implementations can decide how access to flags is performed depending on the implementation of flags being used. PiperOrigin-RevId: 388181424
* Googletest exportAbseil Team2021-08-041-4/+4
| | | | | | Proliferation of inclusive language. PiperOrigin-RevId: 387535677
* Googletest exportAbseil Team2021-07-091-1/+0
| | | | | | Remove unneeded using ::std::get; PiperOrigin-RevId: 383688097
* Googletest exportAbseil Team2021-07-071-0/+1
| | | | | | | | Add `Conditional` wrapper to gtest This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood. PiperOrigin-RevId: 383407665
* Googletest exportAbseil Team2021-06-301-0/+1
| | | | | | Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0). PiperOrigin-RevId: 382210276
* Merge pull request #3443 from hyukmyeong:typodinord2021-06-225-12/+12
|\ | | | | | | PiperOrigin-RevId: 380705469
| * fix typosrefs/pull/3443/headHyuk Myeong2021-06-135-12/+12
|/
* Googletest exportAbseil Team2021-06-111-1/+1
| | | | | | Internal change PiperOrigin-RevId: 378672633
* Googletest exportAbseil Team2021-06-091-1/+0
| | | | | | Add CNAME file for custom domain PiperOrigin-RevId: 378384525
* Googletest exportAbseil Team2021-06-091-3/+3
| | | | | | Update broken link PiperOrigin-RevId: 378272186
* Googletest exportAbseil Team2021-06-081-0/+1
| | | | | | Add CNAME file for custom domain PiperOrigin-RevId: 377604116
* Googletest exportAbseil Team2021-06-023-48/+1460
| | | | | | Create new Testing API reference PiperOrigin-RevId: 376969148
* Googletest exportAbseil Team2021-06-024-153/+605
| | | | | | Create new Mocking Reference PiperOrigin-RevId: 376951575
* Googletest exportAbseil Team2021-06-021-3/+2
| | | | | | Fix broken link PiperOrigin-RevId: 375995669
* Googletest exportAbseil Team2021-06-027-581/+704
| | | | | | Create Assertions Reference PiperOrigin-RevId: 375824718
* Googletest exportAbseil Team2021-05-252-13/+25
| | | | | | Add Google Analytics & footer PiperOrigin-RevId: 375539689
* Googletest exportAbseil Team2021-05-211-1/+1
| | | | | | Add missing link PiperOrigin-RevId: 374774097
* Googletest exportAbseil Team2021-05-211-11/+0
| | | | | | Remove inapplicable example PiperOrigin-RevId: 374762004