1. 26 Apr, 2022 1 commit
    • Derek Mauro's avatar
      Use RE2 for the regex implementation when building with Bazel and using Abseil · e33c2b24
      Derek Mauro authored
      bazel build --define=absl=1 ...
      
      A dependency on RE2 is now required when building GoogleTest with Abseil.
      Using RE2 will provide a consistent cross-platform regex experience.
      
      Users will need to add the com_googlesource_code_re2, bazel_skylib,
      and platforms repository to their WORKSPACE files. See our WORKSPACE
      file in the root directory of this project for an example of how to
      add the dependencies.
      
      Please note that the com_googlesource_code_re2 dependency must use a
      commit from the `abseil` branch of the project:
      https://github.com/google/re2/tree/abseil
      
      PiperOrigin-RevId: 444650118
      Change-Id: I45c55b26684c0c50d721a05b81c5f8a0c092400f
      e33c2b24
  2. 04 Apr, 2022 1 commit
    • Derek Mauro's avatar
      Use the Abseil flags library when Abseil is present · 25dcdc7e
      Derek Mauro authored
      When built with `--define=absl=1` under Bazel, GoogleTest
      flags use ABSL_FLAG instead of GoogleTest's own implementation.
      
      There are some minor behavior differences in this mode.
      
      The most notable difference is that unrecognized flags result
      in a flag parsing error, and are not returned to the user though
      a modified argc/argv, unless they appear after the positional
      argument delimiter ("--").
      
      For example, to pass a non-Abseil flag, you would have to do
      ./mytest --gtest_color=false -- --myflag=myvalue
      
      The documentation at https://abseil.io/docs/cpp/guides/flags
      may be helpful in understanding the behavior.
      
      There are some other minor differences. For example,
      passing --help results in the program returning 1 instead of 0.
      
      https://github.com/google/googletest/issues/3646
      
      PiperOrigin-RevId: 439312700
      Change-Id: Id696a25f50f24a5b1785c45ca8fa59794f86fd5c
      25dcdc7e
  3. 08 Oct, 2021 1 commit
  4. 17 Sep, 2021 1 commit
  5. 07 Jul, 2021 1 commit
  6. 26 Jun, 2021 1 commit
  7. 25 May, 2021 1 commit
  8. 26 Apr, 2021 1 commit
  9. 22 Mar, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 1a8ecf18
      Abseil Team authored
      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
      1a8ecf18
  10. 15 Mar, 2021 1 commit
  11. 12 Aug, 2020 1 commit
    • Rob Earhart's avatar
      Export LICENSE · 025e1a48
      Rob Earhart authored
      This makes it easier to include the license in redistributions, as required by the license.
      025e1a48
  12. 29 May, 2020 1 commit
  13. 07 Aug, 2019 1 commit
  14. 29 Apr, 2019 1 commit
  15. 22 Jan, 2019 1 commit
  16. 14 Jan, 2019 1 commit
    • Pavel Samolysov's avatar
      Enable building as a shared library (dll) on Windows with Bazel · c868da19
      Pavel Samolysov authored
      
      
      While the google test library is being built as a shared library using Bazel,
      so that there is a rule like
      
      cc_test(
           name = "iterator_traits_test",
           linkstatic = 0,
           deps = ["@gtest//:gtest_main"],
           ...
      )
      
      in a BUILD file, the following error appears on Windows:
      
      INFO: Found 1 test target...
      ERROR: C:/../external/gtest/BUILD.bazel:55:1: output 'external/gtest/gtest.if.lib' was not created
      ERROR: C:/../external/gtest/BUILD.bazel:55:1: not all outputs were created or valid
      Target //test:iterator_traits_test failed to build
      
      The reason is a missing "win_def_file" attribute of the "gtest" and
      "gtest_main" rules in the BUILD.bazel inside the google test library
      package.
      
      The "windows_export_all_symbols" feature is added to the rules, this
      feature forces Bazel to export all symbols from the google test library
      to linker. I believe exporting all symbols from a testing library makes
      no problem for the application from a point of view on encapsulation.
      Signed-off-by: default avatarPavel Samolysov <samolisov@gmail.com>
      c868da19
  17. 03 Dec, 2018 2 commits
  18. 07 Nov, 2018 1 commit
    • krzysio's avatar
      Googletest export · 105579a6
      krzysio authored
      Improve Bazel build files.
      
      New target gtest_prod allows access to the FRIEND_TEST macro without depending on the entirety of GTest in production executables. Additionally, duplicate config_setting rules were removed and formatting was adjusted.
      
      PiperOrigin-RevId: 220279205
      105579a6
  19. 01 Oct, 2018 2 commits
    • misterg's avatar
      Googletest export · a7b21c95
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 215236414
      a7b21c95
    • durandal's avatar
      Googletest export · be429c89
      durandal authored
      Add myself to the authors table.
      
      PiperOrigin-RevId: 214822035
      be429c89
  20. 12 Jul, 2018 1 commit
  21. 10 Jul, 2018 1 commit
    • Derek Mauro's avatar
      Adds stacktrace support from Abseil to Google Test · 4c417877
      Derek Mauro authored
      This change adds the ability to generate stacktraces in Google Test on
      both failures of assertions/expectations and on crashes. The
      stacktrace support is conditionally available only when using Abseil
      with Google Test.
      
      To use this support, run the test under Bazel with a command like this:
      
      bazel test --define absl=1 --test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 //path/to/your:test
      
      The "--define absl=1" part enables stacktraces on assertion/expectation
      failures.
      
      The "--test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1" part enables
      the signal handler that logs a stacktrace in the event of a crash
      (this also requires the "--define absl=1" part). This is not the
      default since it may interfere with existing tests.
      4c417877
  22. 31 Jan, 2018 1 commit
  23. 30 Jan, 2018 1 commit
  24. 09 Jan, 2018 1 commit
  25. 18 Aug, 2017 2 commits
  26. 10 Aug, 2017 3 commits
  27. 09 Aug, 2017 2 commits
    • misterg's avatar
      WIP · 66a03695
      misterg authored
      66a03695
    • misterg's avatar
      WIP · ac885f3a
      misterg authored
      ac885f3a
  28. 08 Aug, 2017 2 commits
  29. 02 Aug, 2017 2 commits
    • misterg's avatar
      WIP · aa31cb67
      misterg authored
      aa31cb67
    • misterg's avatar
      WIP · 6615f7df
      misterg authored
      6615f7df
  30. 01 Aug, 2017 2 commits
    • misterg's avatar
      WIP · b3edada2
      misterg authored
      b3edada2
    • misterg's avatar
      WIP · f63e2a14
      misterg authored
      f63e2a14