Commit Graph

3752 Commits

Author SHA1 Message Date
Andy Soffer
23ef29555e Merge pull request #3314 from Vollstrecker:master
PiperOrigin-RevId: 369550590
2021-04-21 10:24:41 -04:00
Abseil Team
f16d43cd38 Googletest export
This callsite was previously updated to use ZX_INFO_PROCESS_V2 as a part of a soft transition. It is now time to revert back to `ZX_INFO_PROCESS` (which is now an alias of the former). See fxbug.dev/30751 for more details.

PiperOrigin-RevId: 369370855
2021-04-21 10:24:32 -04:00
Abseil Team
0d9daa9936 Googletest export
This callsite was previously updated to use ZX_INFO_PROCESS_V2 as a part of a soft transition. It is now time to revert back to `ZX_INFO_PROCESS` (which is now an alias of the former). See fxbug.dev/30751 for more details.

PiperOrigin-RevId: 369349579
2021-04-21 10:24:25 -04:00
Andy Soffer
566fdcc928 Merge pull request #3364 from jbampton:fix-spelling
PiperOrigin-RevId: 369217358
2021-04-21 10:24:17 -04:00
Vollstrecker
8043818e1b
Use URL instead of git-repo 2021-04-20 10:09:33 +02:00
dmauro
eaf9a3fd77 Googletest export
Use the time_point from steady_clock instead of the template
This fixes the build on some embedded compilers

PiperOrigin-RevId: 368879480
2021-04-16 17:33:13 -07:00
Abseil Team
831bc03504 Googletest export
Fix -Wconversion issues on Fuchsia

PiperOrigin-RevId: 368520510
2021-04-15 20:41:37 -07:00
Sebastian Krämer
124e87a303 Apply missing suggestions from code review for GTEST_SKIP
Co-authored-by: Eric Schmidt <shibumi@google.com>
2021-04-15 22:28:41 +02:00
Sebastian Krämer
1de97fd1c3 Apply suggestions from code review for GTEST_SKIP documentation
Extended example and some rewording by @ericschmidtatwork, thank you.

Co-authored-by: Eric Schmidt <shibumi@google.com>
2021-04-15 22:28:41 +02:00
Sebastian Krämer
c4ed56eb75 Add subsection for GTEST_SKIP documentation
A subsection "Skipping test execution" was added to document GTEST_SKIP
and where it can be used.

relates issue #1544
2021-04-15 22:28:41 +02:00
John Bampton
050b517518 chore: fix spelling 2021-04-15 11:53:53 +10:00
Vollstrecker
c79eb87c11
Mention to explicitely set the option to it's default. 2021-04-14 23:13:01 +02:00
dmauro
8d664b94be Googletest export
Remove AppVeyor configuration.
Windows is now tested on Kokoro.

PiperOrigin-RevId: 368471950
2021-04-14 13:51:13 -07:00
Vollstrecker
38c316fc5c
Changes like Requested. 2021-04-14 14:58:03 +02:00
Abseil Team
4400d68de4 Googletest export
Add support to run gtest on Xtensa platform.

This add support to run GTest base test suits on Xtensa
(https://ip.cadence.com/ipportfolio/tensilica-ip) base simulator.
Xtensa only provides libc and some basic operations and does not run an
operating system by default.

PiperOrigin-RevId: 368162205
2021-04-13 17:58:07 -07:00
Abseil Team
486a4a6be5 Googletest export
Adds a warning about anonymous namespaces in relation to private testing.

PiperOrigin-RevId: 367730808
2021-04-12 20:14:27 -07:00
Abseil Team
c3fc92f0b7 Googletest export
Update docs to point to the github.io pages.

PiperOrigin-RevId: 367711335
2021-04-12 20:14:19 -07:00
Dino Radaković
ec7fa96f29 Merge pull request #3158 from GauthamBanasandra:patch-1
PiperOrigin-RevId: 367681693
2021-04-12 20:14:10 -07:00
Abseil Team
965f8ecbfd Googletest export
Generalize root directory in CI scripts

PiperOrigin-RevId: 367628939
2021-04-09 09:04:04 -07:00
Dino Radaković
ad462b70c9 Merge pull request #3319 from a-sully:patch-1
PiperOrigin-RevId: 367509099
2021-04-09 09:03:55 -07:00
Abseil Team
6a5eb80749 Googletest export
Update the example for Notify to use a lambda.
It is much less boilerplate and easier to remember.

PiperOrigin-RevId: 367284222
2021-04-07 23:39:39 -07:00
Abseil Team
8a65bc0303 Googletest export
Docs: Add examples for `FieldsAre` matcher
PiperOrigin-RevId: 367263024
2021-04-07 23:39:32 -07:00
Abseil Team
d0303e40c5 Googletest export
Migrate away from deprecated --heap_check=strict

PiperOrigin-RevId: 367226846
2021-04-07 23:39:25 -07:00
Abseil Team
601a68150d Googletest export
This is part of a soft transition over to having ZX_INFO_PROCESS
populate a new struct. See fxbug.dev/30751 for more details.

PiperOrigin-RevId: 367083068
2021-04-07 23:39:18 -07:00
Abseil Team
54689b1935 Googletest export
Docs: Clarifying matcher in `Pointwise` and `UnorderedPointwise`
PiperOrigin-RevId: 367059198
2021-04-07 23:39:10 -07:00
Abseil Team
5c8ca58edf Googletest export
Disable blank issue template, delete question template

PiperOrigin-RevId: 366874747
2021-04-05 16:13:50 -07:00
Abseil Team
4048829db1 Googletest export
Add macros to omit {EXPECT,ASSERT}_{TRUE,FALSE}

PiperOrigin-RevId: 366455905
2021-04-05 16:13:34 -07:00
Dino Radaković
6c5c4554ac Merge pull request #3155 from ZedThree:cmake-alias-libraries
PiperOrigin-RevId: 365572439
2021-03-29 21:29:19 -07:00
Abseil Team
df7fee587d Googletest export
Delete extra whitespace in gtest_xml_test_utils.py

PiperOrigin-RevId: 365140844
2021-03-25 16:04:59 -07:00
Abseil Team
c0dd0817cf Googletest export
Clarify explanation of mocking free functions

PiperOrigin-RevId: 364943561
2021-03-25 13:43:43 -07:00
Abseil Team
66836f0a90 Googletest export
Minor formatting updates

PiperOrigin-RevId: 364935205
2021-03-25 13:43:36 -07:00
Abseil Team
6dabd081e9 Googletest export
Code style cleanup in docs

PiperOrigin-RevId: 364907938
2021-03-25 13:43:28 -07:00
Abseil Team
5142ccd2d4 Googletest export
Update advanced.md

PiperOrigin-RevId: 364839958
2021-03-25 13:43:21 -07:00
Abseil Team
4595745f72 Googletest export
Update explanation of `EXPECT_EQ(NULL, ptr)` in FAQ

PiperOrigin-RevId: 364626422
2021-03-25 13:43:09 -07:00
Abseil Team
53cc7cd1ec Googletest export
Code style cleanups in cheat sheet

PiperOrigin-RevId: 364465553
2021-03-25 13:43:01 -07:00
Abseil Team
d4e3b8cedf Googletest export
Add CMake quickstart

PiperOrigin-RevId: 364437779
2021-03-25 13:42:53 -07:00
Abseil Team
32ad3c8c36 Googletest export
Add Bazel quickstart

PiperOrigin-RevId: 364419540
2021-03-25 13:42:45 -07:00
Abseil Team
1a8ecf1813 Googletest export
Print std::u8string, std::u16string, and std::u32string as string literals

Previously, these types were printed as "{ U+123, U+456, U+789 }". However,
printed output in that form is difficult to compare against any literals that
might be defined in code. Instead, just treat these types like std::string
and std::wstring, escaping non-ASCII characters with a hexadecimal escape
sequence.

The tests have also been updated to cover the new functionality: as a bonus,
the tests now also pass with the MSVC toolchain.

Internally, the code has been reorganized to primarily operate in terms of
char32_t, under the assumption that char32_t will always be at least as big
as wchar_t. While that assumption is currently true, perhaps it won't be in
the future...

PiperOrigin-RevId: 364033132
2021-03-22 15:18:50 -04:00
Andy Soffer
3ff1e8b98a Merge pull request #3315 from zaucy:master
PiperOrigin-RevId: 363176008
2021-03-18 11:55:57 -04:00
Austin Sullivan
9c047902ac
Update nicestrictnaggy gmock cook_book links
An incorrect link is output to the user when these conditions are met.
2021-03-17 10:33:19 -04:00
Andy Soffer
b7d472f122 Merge pull request #3291 from Be-ing:remove_zi_msvc
PiperOrigin-RevId: 363063211
2021-03-16 09:51:31 -04:00
Abseil Team
ac1d60c2b5 Googletest export
gtest: Output a canned test suite for environment failures in XML/JSON

This surfaces useful information about the environment failure in a structured form.

As we can see from the updated test, previously unsurfaced information is now present.

PiperOrigin-RevId: 362292322
2021-03-16 09:51:18 -04:00
Abseil Team
3bd41ab23f Internal change
PiperOrigin-RevId: 362216935
2021-03-16 09:51:10 -04:00
Abseil Team
d0dbf0f6c8 Googletest export
Update CONTRIBUTING link in README

PiperOrigin-RevId: 362141000
2021-03-16 09:51:03 -04:00
Abseil Team
98ca420679 Googletest export
Internal change

PiperOrigin-RevId: 362040448
2021-03-16 09:50:49 -04:00
Ezekiel Warren
5c08f92c88
Use @platforms instead of @bazel_tools for windows constraint 2021-03-14 18:41:28 -07:00
Vollstrecker
5065389aab
Use Fetchcontent instead of ExternalProject
Hi,

instead of ExternalProject and a new file that is spawned in a new process, it's easier to just use FetchContent. cmake 3.14 should be old enough to be spread.
2021-03-13 16:58:42 +01:00
Abseil Team
e8512bc38c Googletest export
Add missing period and use "that" in restrictive clause.

PiperOrigin-RevId: 361941663
2021-03-10 08:49:41 -08:00
Abseil Team
861d535e25 Googletest export
Update READMEs and issue template

PiperOrigin-RevId: 361931644
2021-03-10 08:49:32 -08:00
Abseil Team
763eaa4305 Googletest export
Use monotonic time to measure test duration

System time may be updated while a test is running. When this occurs a
duration measured using system time may appear to move backwards, or
jump far forwards.
This change updates the duration measurement to use monotonic time
instead. Timestamps for the test start still use system time.

PiperOrigin-RevId: 361700881
2021-03-09 10:59:35 -08:00