1. 22 Nov, 2019 2 commits
    • Merge pull request #2570 from xieyubo:1.10 · af71b660
      Gennadiy Civil authored
      PiperOrigin-RevId: 281971090
    • Googletest export · 717ce7fe
      Abseil Team authored
      Use standard C++11 integer types in gtest-port.h.
      
      Remove testing::internal::{Int,Uint}{32,64} in favor of types
      guaranteed to be in <cstdint> since C++11.
      
      Tests for built-in integer type coverage are switched from
      {Int,Uint}64 to [unsigned] long long, which is guaranteed by
      C++11 to exist and be at least 64-bit wide.
      
      PiperOrigin-RevId: 281565263
  2. 20 Nov, 2019 2 commits
    • Merge pull request #2569 from bgianfo:master · 200ff599
      Gennadiy Civil authored
      PiperOrigin-RevId: 281321427
    • Googletest export · 4bf46623
      Abseil Team authored
      Add a breadcrumb about nullopt comparison near the Optional() matcher.
      
      Also add a note about how otherwise-spurious 'Eq()' may be needed in some cases. Without this, something like Field(&MyStruct::optional_field_without_equals_equals, absl::nullopt) doesn't work - it converts the nullopt to an optional<> of the non-equalable type, and fails to select the operator==(optional<>, nullopt_t) overload. The Eq() lets the type persist later into the match.
      
      PiperOrigin-RevId: 281305519
  3. 19 Nov, 2019 1 commit
    • Googletest export · 50cfbb72
      Abseil Team authored
      Update stale comments to point to proper location.
      
      PiperOrigin-RevId: 281157036
  4. 16 Nov, 2019 2 commits
    • Fix internal memory leak in Windows _Crt report. · dcdb6506
      xyb authored
      We use "MemoryIsNotDeallocated" to aovid internal expected leak reported
      in Windows _Crt report, like:
      
          {
          #ifdef _MSC_VER
          	MemoryIsNotDeallocated memory_is_not_deeallocated;
          #endif
      
          	static ThreadIdToThreadLocals* map = new
      	ThreadIdToThreadLocals();
      	return map;
          }
      
      But int the above code, only "new ThreadIdToThreadLocals()" is
      protected, if we invoke "insert()" function of the return value,
      the memory allocated in "insert()" will be reported to _Crt report
      also. This change try to fix this issue.
    • Fix FlatTuple compilation on older msvc. · 0c469a5a
      Brian Gianforcaro authored
      googletest 1.10.0 fails to compile on msvc version 19.00.23917
      with one compilation error:
      
      src\googletest\include\gtest\internal\gtest-internal.h(1188) : error C2039:
      'FlatTupleBase<testing::internal::FlatTuple<bool,bool>,testing::internal::IndexSequence<0,1> >':
      is not a member of 'testing::internal::FlatTuple<bool,bool>'
      
      This PR fixes the compilation error by explicitly specifying the full type that Indices is
      located in the base type.
  5. 15 Nov, 2019 1 commit
  6. 13 Nov, 2019 2 commits
  7. 08 Nov, 2019 2 commits
    • Googletest export · d5707695
      Abseil Team authored
      Correctly deal with stringification, and forbid empty arguments where they could slip thought, in the type parameterized test API.
      
      Note: even where empty args work, it's likely to result in technically invalid code by virtue of creating reserved identifiers:
      https://en.cppreference.com/w/cpp/language/identifiers
      PiperOrigin-RevId: 279330971
    • Googletest export · 681454da
      Abseil Team authored
      Clone+exec death test allocates a single page of stack to run chdir + exec on.
      This is not enough when gtest is built with ASan and run on particular
      hardware.
      
      With ASan on x86_64, ExecDeathTestChildMain has frame size of 1728 bytes.
      
      Call to chdir() in ExecDeathTestChildMain ends up in
      _dl_runtime_resolve_xsavec, which attempts to save register state on the stack;
      according to cpuid(0xd) XSAVE register save area size is 2568 on my machine.
      
      This results in something like this in all death tests:
        Result: died but not with expected error.
        ...
        [  DEATH   ] AddressSanitizer:DEADLYSIGNAL
        [  DEATH   ] =================================================================
        [  DEATH   ] ==178637==ERROR: AddressSanitizer: stack-overflow on address ...
      
      PiperOrigin-RevId: 278709790
  8. 05 Nov, 2019 6 commits
  9. 04 Nov, 2019 1 commit
  10. 02 Nov, 2019 3 commits
  11. 01 Nov, 2019 2 commits
  12. 31 Oct, 2019 2 commits
    • Googletest export · 2db3df9c
      Abseil Team authored
      Change variable name to match comment.
      
      PiperOrigin-RevId: 277713621
    • Googletest export · e2fc3a9c
      Abseil Team authored
      Tolerate std::string's explicit copy construction from std::string_view.
      
      PiperOrigin-RevId: 277583394
  13. 30 Oct, 2019 2 commits
  14. 29 Oct, 2019 8 commits
  15. 25 Oct, 2019 4 commits