deps: update googletest to 50b8600 · nodejs/node@05e560d
@@ -1385,9 +1385,9 @@ class GTEST_API_ Mutex {
13851385Mutex();
13861386~Mutex();
138713871388-void Lock();
1388+void lock();
138913891390-void Unlock();
1390+void unlock();
1391139113921392// Does nothing if the current thread holds the mutex. Otherwise, crashes
13931393// with high probability.
@@ -1424,9 +1424,9 @@ class GTEST_API_ Mutex {
14241424// "MutexLock l(&mu)". Hence the typedef trick below.
14251425class GTestMutexLock {
14261426public:
1427-explicit GTestMutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
1427+explicit GTestMutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->lock(); }
142814281429-~GTestMutexLock() { mutex_->Unlock(); }
1429+~GTestMutexLock() { mutex_->unlock(); }
1430143014311431private:
14321432 Mutex* const mutex_;
@@ -1641,14 +1641,14 @@ class ThreadLocal : public ThreadLocalBase {
16411641class MutexBase {
16421642public:
16431643// Acquires this mutex.
1644-void Lock() {
1644+void lock() {
16451645GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_));
16461646 owner_ = pthread_self();
16471647 has_owner_ = true;
16481648 }
1649164916501650// Releases this mutex.
1651-void Unlock() {
1651+void unlock() {
16521652// Since the lock is being released the owner_ field should no longer be
16531653// considered valid. We don't protect writing to has_owner_ here, as it's
16541654// the caller's responsibility to ensure that the current thread holds the
@@ -1716,9 +1716,9 @@ class Mutex : public MutexBase {
17161716// "MutexLock l(&mu)". Hence the typedef trick below.
17171717class GTestMutexLock {
17181718public:
1719-explicit GTestMutexLock(MutexBase* mutex) : mutex_(mutex) { mutex_->Lock(); }
1719+explicit GTestMutexLock(MutexBase* mutex) : mutex_(mutex) { mutex_->lock(); }
172017201721-~GTestMutexLock() { mutex_->Unlock(); }
1721+~GTestMutexLock() { mutex_->unlock(); }
1722172217231723private:
17241724 MutexBase* const mutex_;
@@ -1864,8 +1864,8 @@ class GTEST_API_ ThreadLocal {
18641864class Mutex {
18651865public:
18661866Mutex() {}
1867-void Lock() {}
1868-void Unlock() {}
1867+void lock() {}
1868+void unlock() {}
18691869void AssertHeld() const {}
18701870};
18711871@@ -2322,6 +2322,13 @@ const char* StringFromGTestEnv(const char* flag, const char* default_val);
23222322} // namespace internal
23232323} // namespace testing
232423242325+#if GTEST_INTERNAL_HAVE_CPP_ATTRIBUTE(clang::annotate)
2326+#define GTEST_INTERNAL_DEPRECATE_AND_INLINE(msg) \
2327+ [[deprecated(msg), clang::annotate("inline-me")]]
2328+#else
2329+#define GTEST_INTERNAL_DEPRECATE_AND_INLINE(msg) [[deprecated(msg)]]
2330+#endif
2331+23252332#if defined(__cpp_lib_span) || (GTEST_INTERNAL_HAS_INCLUDE(<span>) && \
23262333 GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L)
23272334#define GTEST_INTERNAL_HAS_STD_SPAN 1