- 27 Oct, 2020 2 commits
-
-
vslashg authored
PiperOrigin-RevId: 339242159
-
Abseil Team authored
I'm not sure how this relates to the GitHub repo. Could you please advise? PiperOrigin-RevId: 339060470
-
- 22 Oct, 2020 1 commit
-
-
Gennadiy Rozental authored
PiperOrigin-RevId: 338093064
-
- 20 Oct, 2020 1 commit
-
-
Arthur Sonzogni authored
Replace "definedin in" by "defined in" in files: - googletest/src/gtest.cc - googletest/test/googletest-output-test-golden-lin.txt
-
- 19 Oct, 2020 2 commits
-
-
Abseil Team authored
Fix typo in the "Assertion Placement" section PiperOrigin-RevId: 337435223
-
Abseil Team authored
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
-
- 15 Oct, 2020 2 commits
-
-
dmauro authored
Fixes build warnings from previous CL Add CMake to internal presubmit to prevent these PiperOrigin-RevId: 337325504
-
Derek Mauro authored
PiperOrigin-RevId: 337217118
-
- 14 Oct, 2020 15 commits
-
-
Abseil Team authored
Add ::testing::FieldsAre matcher for objects that support get<> and structured bindings. PiperOrigin-RevId: 337165285
-
dmauro authored
Disable warnings on code that intentionally tests a suboptimal syntax PiperOrigin-RevId: 337138442
-
dmauro authored
Stop using master.zip to make the build reproducible PiperOrigin-RevId: 337102716
-
Abseil Team authored
Removing a semicolon that triggers a lint error in sample code. PiperOrigin-RevId: 337095451
-
dmauro authored
Disable -Wmismatched-tags warning for struct/class tuple_size PiperOrigin-RevId: 337087493
-
Abseil Team authored
Prefer using over typedef. PiperOrigin-RevId: 337080404
-
dmauro authored
Fix -Wmismatched-tags error with struct tuple_size vs class tuple_size PiperOrigin-RevId: 336930166
-
dmauro authored
Fixes AppVeyor by upgrading to Bazel 3.6.0 PiperOrigin-RevId: 336887434
-
Derek Mauro authored
PiperOrigin-RevId: 336881266
-
Abseil Team authored
Use absl::StrCat in MATCHER_P example for consistency with https://abseil.io/tips/3 PiperOrigin-RevId: 336878481
-
Abseil Team authored
Suggest using generic lambdas for composing macros. Long chains of macros hurt legibility; generic lambdas are an easy way to abbreviate them, but are not an obvious solution to casual users. Compare: EXPECT_THAT(f(), ElementsAre( Property(&MyClass::foo, Property(&OtherClass::bar, Contains("x"))), Property(&MyClass::foo, Property(&OtherClass::bar, Contains("y")))); to: EXPECT_THAT(f(), ElementsAre(HasFooBar("x"), HasFooBar("y"))); PiperOrigin-RevId: 336870137 -
ofats authored
Add helper methos to internal FlatTuple. Refactor constructors. PiperOrigin-RevId: 336306681
-
Abseil Team authored
Improve lookup of operator<< for user types Without this fix, trying to use this class with googletest struct Foo {}; template <typename OutputStream> OutputStream& operator<<(OutputStream& os, const Foo&) { os << "TemplatedStreamableInFoo"; return os; } results in an ambiguity error between the class' operator<< and the operator<< in gtest-printers.h removed in this CL. This fix also enables implicit conversions to happen, so that e.g. we will find the base class operator<< if a subclass has no operator<< of its own. PiperOrigin-RevId: 336261221 -
Abseil Team authored
Make the code Python3 compliant. PiperOrigin-RevId: 336144198
-
Derek Mauro authored
PiperOrigin-RevId: 336087297
-
- 12 Oct, 2020 1 commit
-
-
Peter Newman authored
-
- 07 Oct, 2020 3 commits
-
-
Ruslan Manaev authored
-
Mark Barolak authored
PiperOrigin-RevId: 335653055
-
Aralox authored
Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files
-
- 01 Oct, 2020 1 commit
-
-
Abseil Team authored
Update faq.md on underscore to mention `DISABLED_` prefix. PiperOrigin-RevId: 334507963
-
- 30 Sep, 2020 5 commits
-
-
ranodeepbanerjee authored
-
dmauro authored
Fix undefined pointer comparison PiperOrigin-RevId: 334436975
-
Abseil Team authored
Update comment to suggest using SetUpTestSuite and TearDownTestSuite. PiperOrigin-RevId: 334430329
-
Andy Getz authored
PiperOrigin-RevId: 334391149
-
Andy Getz authored
PiperOrigin-RevId: 334384310
-
- 29 Sep, 2020 1 commit
-
-
Abseil Team authored
Fix typo PiperOrigin-RevId: 333745750
-
- 27 Sep, 2020 1 commit
-
-
keshavgbpecdelhi authored
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.
-
- 24 Sep, 2020 5 commits
-
-
Abseil Team authored
Revision of recent DoubleNearPredFormat change to support more toolchains. isnan() is a macro in C99, and std::isnan() is a function in C++11. The previous change used `isnan` directly, and broke some tests in open source. This CL changes it to follow the practice in gmock-matchers.h, and spell uses of isnan as (std::isnan)(f) . The parens around `std::isnan` prevent it from being recognized as a macro in the preprocessor. PiperOrigin-RevId: 333374377
-
Abseil Team authored
Address OSS Issue #2463 https://github.com/google/googletest/issues/2463 PiperOrigin-RevId: 333289989
-
vslashg authored
PiperOrigin-RevId: 333288626
-
Abseil Team authored
Improve DoubleNearPredFormat output on bad epsilons DoubleNearPredFormat will happily accept epsilon values (abs_error) that are so small that they are meaningless. This turns EXPECT_NEAR into a complicated and non-obvious version of EXPECT_EQ. This change modifies DoubleNearPredFormat) so that when there is a failure it calculates the smallest meaningful epsilon value, given the input values, and then prints a message which explains what happened. If a true equality test is wanted either pass a literal 0.0 as abs_error or use EXPECT_EQ. If a check for being almost equal is wanted consider using EXPECT_DOUBLE_EQ which, contrary to its name, verifies that the two numbers are *almost* equal (within four ULPs). With this change the flaky test mentioned in crbug.com/786046 gives this output: The difference between 4.2934311416234112e+18 and 4.2934311416234107e+18 is 512, where 4.2934311416234112e+18 evaluates to 4.2934311416234112e+18, 4.2934311416234107e+18 evaluates to 4.2934311416234107e+18. The abs_error parameter 1.0 evaluates to 1 which is smaller than the minimum distance between doubles for numbers of this magnitude which is 512, thus making this EXPECT_NEAR check equivalent to EXPECT_EQUAL. Consider using EXPECT_DOUBLE_EQ instead. Tested: I confirmed that this change detects the bad epsilon value that caused crbug.com/786046 in Chromium and added a test for the desired output. PiperOrigin-RevId: 332946880
-
tbarbier authored
-