243 Commits

Author SHA1 Message Date
Gennadiy Civil
b86cca347b Merge branch 'master' into python3-tests 2018-09-20 14:30:26 -04:00
Gennadiy Civil
50f71f4bfc Merge pull request #1843 from matlo607/fix-unittest-msys-ColoredOutputTest
[msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColors
2018-09-20 11:42:29 -04:00
Abseil Team
2ea9c639a2 Googletest export
support printing std::reference_wrapper<T> in gUnit

PiperOrigin-RevId: 213270392
2018-09-20 11:01:16 -04:00
Matthieu Longo
2ae78ba935 [msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColors 2018-09-18 18:29:42 +02:00
Peter Levine
cf72267d85 Fix Python3 support 2018-09-14 19:40:51 -04:00
Jonny007-MKD
534ed43772 Print message of unexpected std::exception in EXPECT_THROW, too 2018-09-14 23:22:04 +02:00
Jonny007-MKD
c6cb651358 Merge branch 'master' into master 2018-09-14 22:39:45 +02:00
misterg
bf6424ccca Googletest export
Removing checks for C++11 from unit tests

PiperOrigin-RevId: 212990514
2018-09-14 14:52:40 -04:00
Jonny007-MKD
a99b157840 Make it public again *sigh* 2018-09-13 14:49:15 +02:00
Jonny007-MKD
5fa27d03e1 Try to fix gcc and clang issues 2018-09-13 13:57:27 +02:00
Jonny007-MKD
fad53c8498 Added special catch for std::exception in GTEST_TEST_NO_THROW_ 2018-09-13 10:24:10 +02:00
Georgi D. Sotirov
8702cc3632 Return GTEST_ATTRIBUTE_UNUSED_ on record_property_env to avoide comilation error (with -Werror)
The unused attribute was removed with commit 3299a23 on 2018-02-23, but it currently breaks build of 1.8.1, because of -Werror GCC parameter as reported in issue #1825.
2018-09-12 10:44:52 +03:00
Gennadiy Civil
28dc4b36eb Update googletest-output-test-golden-lin.txt 2018-08-31 10:26:59 -04:00
Gennadiy Civil
22d19ae17d Update googletest-output-test-golden-lin.txt
manual update golden lin
2018-08-30 21:46:15 -04:00
Gennadiy Civil
cf34aa5973 Update googletest-output-test-golden-lin.txt
manual update, golden lin
2018-08-30 21:42:07 -04:00
misterg
e00932356a Googletest export
Silence MSVC warnings

PiperOrigin-RevId: 210726964
2018-08-30 21:33:02 -04:00
Abseil Team
2988059caf Googletest export
Fix the typed test names in the tests for customized typed test parameters.

As required by googletest documentation, the names should not contain an underscore.

PiperOrigin-RevId: 210678652
2018-08-30 21:32:54 -04:00
misterg
ea0db3df39 Googletest export
Internal Change

PiperOrigin-RevId: 210594341
2018-08-30 21:32:41 -04:00
Gennadiy Civil
4ac4037fe4 Disable MCVS warnings 2018-08-28 23:55:17 -04:00
Gennadiy Civil
bf0322d93e typo 2018-08-28 23:46:23 -04:00
Gennadiy Civil
4d67fc0c32 typo 2018-08-28 23:36:50 -04:00
Gennadiy Civil
3515f3d9cb MSVC warnings silence 2018-08-28 23:25:51 -04:00
Gennadiy Civil
a9a835f3db Update googletest-output-test-golden-lin.txt 2018-08-28 23:11:51 -04:00
Abseil Team
6e639d6719 Googletest export
Add the possibility of specifying the name in type parameterized tests.

Similar to how the last parameter of INSTANTIATE_TEST_CASE_P allows to override the name for (non-type) parametrized tests, this adds the possibility of adding a parameter to INSTANTIATE_TYPED_TEST_CASE_P. The argument has to be a class, which contains a static templated function GetName<T>(int), returning the name for type T.

PiperOrigin-RevId: 210532231
2018-08-28 16:53:45 -04:00
Abseil Team
668c1f4440 Googletest export
Breaks Windows builds

PiperOrigin-RevId: 210434120
2018-08-28 16:53:38 -04:00
Abseil Team
e5a824e206 Googletest export
Fix Theta(N^2) memory usage of EXPECT_EQ(string) when the strings don't match.

The underlying CalculateOptimalEdits() implementation used a simple
dynamic-programming approach that always used N^2 memory and time. This meant
that tests for equality of large strings were ticking time bombs: They'd work
fine as long as the test passed, but as soon as the strings differed the test
would OOM, which is very hard to debug.
I switched it out for a Dijkstra search, which is still worst-case O(N^2), but
in the usual case of mostly-matching strings, it is much closer to linear.

PiperOrigin-RevId: 210405025
2018-08-28 16:53:30 -04:00
David Schuldenfrei
13908f48e8 Merge 72a2836945e7a3dcee0730166704587e10bf64ee into 1d9a1912e7f42e8ae66ea365b5b8508fecb31509
Closes #1658

Review and changes, mister@google.com

PiperOrigin-RevId: 210374286
2018-08-27 12:22:33 -04:00
Gennadiy Civil
ea90e723e0 more comments changes 2018-08-14 16:05:55 -04:00
Gennadiy Civil
d2e8f7c999 more comments changes 2018-08-14 15:45:00 -04:00
Gennadiy Civil
f0bcc9b875 Comments changes, no functionality changes. 2018-08-14 15:04:11 -04:00
Gennadiy Civil
bdc777e251 Comments changes, no functionality changes 2018-08-14 14:04:07 -04:00
Gennadiy Civil
23c6b5b54e Merge branch 'master' into deprecate 2018-08-14 08:47:13 -07:00
Gennadiy Civil
175032a9e8 Code formatting changes, clean up, no functionality changes 2018-08-14 11:08:35 -04:00
Gennadiy Civil
af497af914 Mode change on a python script 2018-08-10 15:42:16 -04:00
Gennadiy Civil
fc612ccfe1 formatting and small changes related to code management, no functionality changes 2018-08-09 13:37:11 -04:00
Loo Rong Jie
5201142b92 Merge branch 'master' into deprecate 2018-08-09 20:08:44 +08:00
Gennadiy Civil
aaa6bb6030 Formatting tweaks, no functionality changes 2018-08-08 15:14:21 -04:00
Gennadiy Civil
afe8a57006 upsream additional printer test 2018-08-07 14:05:42 -04:00
Gennadiy Civil
c59e574e3f Formatting changes,small cleanup, no functionality changes 2018-08-07 11:49:47 -04:00
Gennadiy Civil
5c4a9af533 Merge branch 'master' into deprecate 2018-08-03 12:05:07 -04:00
Philipp Paulweber
8e1e30b863 Printers test: fixed compilation bug, due to unnecessary parentheses in declaration 2018-08-03 12:01:30 +02:00
Gennadiy Civil
d3275ce2dc cmake fixes 2018-08-02 17:46:43 -04:00
Gennadiy Civil
1119f2f61d more fixes 2018-08-02 17:32:43 -04:00
Gennadiy Civil
68335f219b fixes tests 2018-08-02 16:51:03 -04:00
Gennadiy Civil
b872114b29 cmake test fixes 2018-08-02 16:24:09 -04:00
Gennadiy Civil
561597a454 cleaning up and adding test changes to CMake 2018-08-02 14:56:33 -04:00
Gennadiy Civil
5cdd4d77b0 Merge branch 'master' of https://github.com/google/googletest 2018-08-01 17:26:04 -04:00
Gennadiy Civil
8c47b27731 various changes to tests 2018-08-01 17:06:17 -04:00
Gennadiy Civil
02eb896a9f more test changes 2018-08-01 16:23:20 -04:00
Gennadiy Civil
91b19095d6 adding googletest-json-output unitest 2018-08-01 16:12:09 -04:00