1. 14 Apr, 2021 1 commit
  2. 13 Mar, 2021 1 commit
  3. 10 Mar, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · e8512bc3
      Abseil Team authored
      Add missing period and use "that" in restrictive clause.
      
      PiperOrigin-RevId: 361941663
      e8512bc3
    • Abseil Team's avatar
      Googletest export · 861d535e
      Abseil Team authored
      Update READMEs and issue template
      
      PiperOrigin-RevId: 361931644
      861d535e
  4. 09 Mar, 2021 5 commits
    • Abseil Team's avatar
      Googletest export · 763eaa43
      Abseil Team authored
      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
      763eaa43
    • Abseil Team's avatar
      Googletest export · bb4f87e6
      Abseil Team authored
      gtest.cc: Split out functions for printing `TestResult` objects
      
      This will make it possible to reuse this code for outputting the "ad_hoc" `TestResult` objects in structured form in XML/JSON.
      
      PiperOrigin-RevId: 361604860
      bb4f87e6
    • Abseil Team's avatar
      Internal change · bf465ff0
      Abseil Team authored
      PiperOrigin-RevId: 361213113
      bf465ff0
    • Dino Radaković's avatar
      Merge pull request #3184 from N-Dekker:PrintTo-type_index-overload · bcfcf75e
      Dino Radaković authored
      PiperOrigin-RevId: 361175466
      bcfcf75e
    • Abseil Team's avatar
      Googletest export · 79b556ef
      Abseil Team authored
      Add CI test scripts
      
      PiperOrigin-RevId: 360931988
      79b556ef
  5. 04 Mar, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · e7e59176
      Abseil Team authored
      Format WORKSPACE and googlemock/test/BUILD.bazel using buildifier
      
      PiperOrigin-RevId: 360913861
      e7e59176
    • Abseil Team's avatar
      Googletest export · 32983d21
      Abseil Team authored
      Fix enum names in a value-parameterized test example.
      
      PiperOrigin-RevId: 360559723
      32983d21
    • Abseil Team's avatar
      Googletest export · de41f822
      Abseil Team authored
      Add Supported Platforms page to docs
      
      PiperOrigin-RevId: 360307129
      de41f822
  6. 26 Feb, 2021 2 commits
  7. 25 Feb, 2021 1 commit
    • Niels Dekker's avatar
      overload PrintTo for std::type_info and std::type_index · ac3c2a8d
      Niels Dekker authored
      Included the string returned by their `name()` member function with the output of `PrintTo`.
      
      Typical use case:
      
          std::unique_ptr<AbstractProduct> product = FactoryMethod();
          // Assert that the product is of type X:
          ASSERT_EQ(std::type_index{typeid(*product)},
                    std::type_index{typeid(ProductX)});
      
      Possible output in case of a test assert failure, now including the names of the compared type indices:
      
      > error: Expected equality of these values:
      >  std::type_index(typeid(*product))
      >    Which is: 8-byte object <D0-65 54-8C F6-7F 00-00> ("class ProductY")
      >  std::type_index(typeid(ProductX))
      >    Which is: 8-byte object <40-64 54-8C F6-7F 00-00> ("class ProductX")
      
      With help from Krystian Kuzniarek.
      ac3c2a8d
  8. 22 Feb, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 1de637fb
      Abseil Team authored
      Remove anchors from page titles in docs
      
      PiperOrigin-RevId: 358474917
      1de637fb
  9. 19 Feb, 2021 1 commit
  10. 18 Feb, 2021 8 commits
    • Abseil Team's avatar
      Googletest export · daa0df7b
      Abseil Team authored
      Explicitly skip tests after fatal global environment setup errors
      
      Previously the tests were all skipped, but the resulting output claimed all
      tests passed.
      
      Before:
      ```
      [----------] Global test environment set-up.
      <failure message>
      [----------] Global test environment tear-down
      [==========] 1 test from 1 test suite ran. (83 ms total)
      [  PASSED  ] 1 test.
      [  FAILED  ] 0 tests, listed below:
      ```
      
      After:
      ```
      [==========] Running 1 test from 1 test suite.
      [----------] Global test environment set-up.
      <failure message>
      [----------] 1 test from SomeTest
      [ RUN      ] SomeTest.DoesFoo
      <...>: Skipped
      [  SKIPPED ] SomeTest.DoesFoo (0 ms)
      [----------] 1 test from SomeTest (0 ms total)
      
      [----------] Global test environment tear-down
      [==========] 1 test from 1 test suite ran. (68 ms total)
      [  PASSED  ] 0 tests.
      [  SKIPPED ] 1 test, listed below:
      [  SKIPPED ] SomeTest.DoesFoo
      [  FAILED  ] 0 tests, listed below:
      ```
      
      PiperOrigin-RevId: 358026389
      daa0df7b
    • Abseil Team's avatar
      Googletest export · 7fb047bc
      Abseil Team authored
      Explain how to wrap matchers.
      
      PiperOrigin-RevId: 357901293
      7fb047bc
    • Abseil Team's avatar
      Googletest export · 58937787
      Abseil Team authored
      Update stale links to `gmock_cook_book.md`.
      
      I'm a new googletest user and found these links broken when reading the documentation.
      
      PiperOrigin-RevId: 357786392
      58937787
    • Abseil Team's avatar
      Googletest export · bc32a874
      Abseil Team authored
      Update the custom name example to not use underscores.
      
      The NOTE a few blocks above specifically calls out that test names should not contain undersccores, so probably the example should not suggest using underscores.
      
      PiperOrigin-RevId: 357204578
      bc32a874
    • Abseil Team's avatar
      Googletest export · 1a5a78b9
      Abseil Team authored
      Add files for GitHub Pages
      
      PiperOrigin-RevId: 357096486
      1a5a78b9
    • Abseil Team's avatar
      Googletest export · 9e2c7ab0
      Abseil Team authored
      Add issue templates
      
      PiperOrigin-RevId: 357075859
      9e2c7ab0
    • Abseil Team's avatar
      Googletest export · 0a3a3a84
      Abseil Team authored
      Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard, attempt #2
      
      PiperOrigin-RevId: 357056902
      0a3a3a84
    • Abseil Team's avatar
      Googletest export · e935e6c3
      Abseil Team authored
      Internal change
      
      PiperOrigin-RevId: 356867746
      e935e6c3
  11. 11 Feb, 2021 9 commits
  12. 05 Feb, 2021 6 commits
    • platisd's avatar
      Do not include void into mocked method arguments · 46b18857
      platisd authored
      If a function that takes no arguments explicitly states (void)
      then do not include it in the mocked method argument list
      since it triggers static assertions that expect no arguments
      to be present.
      
      Fixes (?) #3261
      46b18857
    • Abseil Team's avatar
      Googletest export · f3ef7e17
      Abseil Team authored
      Fix table formatting in cookbook
      
      PiperOrigin-RevId: 355659722
      f3ef7e17
    • dmauro's avatar
      Googletest export · 9e975a02
      dmauro authored
      Disable Travis CI. The migration to travis-ci.com is incompatible with
      security policy. These tests are now run on Kokoro.
      
      PiperOrigin-RevId: 355438343
      9e975a02
    • Abseil Team's avatar
      Googletest export · 7e73533a
      Abseil Team authored
      Delete Google-internal IWYU pragmas
      
      PiperOrigin-RevId: 355398547
      7e73533a
    • Abseil Team's avatar
      Googletest export · b6323d21
      Abseil Team authored
      Add a note to recommend against using `Property()` for functions that the test author does not own.
      
      PiperOrigin-RevId: 355295183
      b6323d21
    • Abseil Team's avatar
      Googletest export · aea7f60b
      Abseil Team authored
      Update description of `Property()` matcher
      
      PiperOrigin-RevId: 355253498
      aea7f60b