1. 01 10月, 2020 1 次提交
    • A
      Googletest export · 1fb1bb23
      Abseil Team 提交于
      Update faq.md on underscore to mention `DISABLED_` prefix.
      
      PiperOrigin-RevId: 334507963
      1fb1bb23
  2. 30 9月, 2020 4 次提交
  3. 29 9月, 2020 1 次提交
  4. 27 9月, 2020 1 次提交
    • K
      Update cook_book.md · 1f3484a2
      keshavgbpecdelhi 提交于
      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.
      1f3484a2
  5. 25 9月, 2020 4 次提交
    • A
      Googletest export · fe4d5f10
      Abseil Team 提交于
      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
      fe4d5f10
    • A
      Googletest export · df94fc5f
      Abseil Team 提交于
      Address OSS Issue #2463 https://github.com/google/googletest/issues/2463
      
      PiperOrigin-RevId: 333289989
      df94fc5f
    • V
      Merge pull request #3014 from JethroSama:patch-1 · 634c52d9
      vslashg 提交于
      PiperOrigin-RevId: 333288626
      634c52d9
    • A
      Googletest export · b5687db5
      Abseil Team 提交于
      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
      b5687db5
  6. 24 9月, 2020 1 次提交
  7. 21 9月, 2020 2 次提交
    • A
      Googletest export · 7aca8442
      Abseil Team 提交于
      Simplify FooConcrete static calls in googlemock cookbook.
      
      PiperOrigin-RevId: 332437041
      7aca8442
    • A
      Googletest export · bb272534
      Abseil Team 提交于
      Reduce the demangled name bloat of the Action constructor.
      
      PiperOrigin-RevId: 332234887
      bb272534
  8. 18 9月, 2020 1 次提交
  9. 11 9月, 2020 2 次提交
    • A
      Googletest export · a4ab0abb
      Abseil Team 提交于
      Mark ACTION_Pn()-generated functions as must-use-result.
      
      This catches when a client creates an action and discards it, thinking that the action has actually been applied to something.
      
      This will help people who make the mistake of defining, for example, both `void Use(Foo*)` and `ACTION(Use) { Use(arg); }` for later application to a Foo.  With such an overload, a client may then write `Use();`, forgetting the param and being confused why nothing happens.
      
      This also catches when a client defines their own action in terms of an ACTION()-generated one, invokes the ACTION's builder, and then fails to invoke the resulting action, thinking it's operating on the outer action's parameters.
      
      PiperOrigin-RevId: 330614454
      a4ab0abb
    • D
      Merge pull request #2994 from xerus2000:gmock-docs · 64660396
      Derek Mauro 提交于
      PiperOrigin-RevId: 330545489
      64660396
  10. 09 9月, 2020 1 次提交
    • D
      Googletest export · 5f8fcf4a
      dmauro 提交于
      Implements GetTimeInMillis() using std::chrono for portability
      Fixes #2995
      
      PiperOrigin-RevId: 329709958
      5f8fcf4a
  11. 02 9月, 2020 2 次提交
    • A
      Googletest export · 7b1cf6dd
      Abseil Team 提交于
      gtest.cc: make ColoredPrintf static
      
      the prototype was removed from gtest.h in cl/301446904; quiets a
      -Wmissing-declarations warning
      
      PiperOrigin-RevId: 329569020
      7b1cf6dd
    • A
      Googletest export · af1e75ce
      Abseil Team 提交于
      Add millisecond precision to start timestamp in XML/JSON output
      
      - Previous timestamp had format YYYY-MM-DDThh:mm:ss, now YYYY-MM-DDThh:mm:ss.sss
      - This conforms to the ISO 8601 standard
      
      PiperOrigin-RevId: 329503623
      af1e75ce
  12. 27 8月, 2020 1 次提交
  13. 25 8月, 2020 1 次提交
  14. 24 8月, 2020 5 次提交
  15. 14 8月, 2020 1 次提交
    • K
      Googletest export · adeef192
      krzysio 提交于
      Mention matchers as an alternative to assertions in subroutines.
      
      Matchers are often the better choice - they can provide more informative error messages and circumvent all of the complexity described in this section.
      
      PiperOrigin-RevId: 326332149
      adeef192
  16. 13 8月, 2020 1 次提交
    • R
      Export LICENSE · 025e1a48
      Rob Earhart 提交于
      This makes it easier to include the license in redistributions, as required by the license.
      025e1a48
  17. 12 8月, 2020 3 次提交
    • A
      Googletest export · 10ade847
      Abseil Team 提交于
      internal change
      
      PiperOrigin-RevId: 326080000
      10ade847
    • D
      Googletest export · 6c655699
      dmauro 提交于
      Remove references to the GoogleTest mailing list
      Fixes #2966
      
      PiperOrigin-RevId: 326065972
      6c655699
    • A
      Googletest export · 3d93f880
      Abseil Team 提交于
      internal change
      
      PiperOrigin-RevId: 325799949
      3d93f880
  18. 08 8月, 2020 5 次提交
    • D
      Merge pull request #2961 from FranciscoThiesen:patch-1 · 3af06fe1
      Derek Mauro 提交于
      PiperOrigin-RevId: 325429245
      3af06fe1
    • D
      Merge pull request #2972 from srz-zumix:fix/remove_legacy_testcase_api_ · ce654c2f
      Derek Mauro 提交于
      PiperOrigin-RevId: 325220934
      ce654c2f
    • A
      Googletest export · d0de618a
      Abseil Team 提交于
      Fixing exception-safety bug in googletest. Previously, if an exception was
      thrown during a call to a mock that would have triggered an error, the error
      was discarded.
      
      Fixes #2890
      
      PiperOrigin-RevId: 325017806
      d0de618a
    • A
      Googletest export · 5a5caab3
      Abseil Team 提交于
      Fix DoAll to work with move-only sink arguments.
      
      This changes types of the first n - 1 actions so that they only get a readonly
      view of the arguments. The last action will accept move only objects.
      
      PiperOrigin-RevId: 324619666
      5a5caab3
    • A
      Googletest export · 48ec6409
      Abseil Team 提交于
      Fix DoAll to work with move-only sink arguments.
      
      This changes types of the first n - 1 actions so that they only get a readonly
      view of the arguments. The last action will accept move only objects.
      
      PiperOrigin-RevId: 324600664
      48ec6409
  19. 05 8月, 2020 1 次提交
  20. 04 8月, 2020 2 次提交