deps: update googletest to c231e6f · nodejs/node@760b788 · GitHub
Skip to content

Commit 760b788

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update googletest to c231e6f
PR-URL: #51657 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 301541c commit 760b788

6 files changed

Lines changed: 141 additions & 144 deletions

File tree

deps/googletest/include/gtest/gtest.h

Lines changed: 3 additions & 3 deletions

deps/googletest/include/gtest/internal/gtest-filepath.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
4444

4545
#include <string>
46+
#include <utility>
4647

4748
#include "gtest/internal/gtest-port.h"
4849
#include "gtest/internal/gtest-string.h"
@@ -70,15 +71,20 @@ class GTEST_API_ FilePath {
7071
public:
7172
FilePath() : pathname_("") {}
7273
FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {}
74+
FilePath(FilePath&& rhs) : pathname_(std::move(rhs.pathname_)) {}
7375

74-
explicit FilePath(const std::string& pathname) : pathname_(pathname) {
76+
explicit FilePath(std::string pathname) : pathname_(std::move(pathname)) {
7577
Normalize();
7678
}
7779

7880
FilePath& operator=(const FilePath& rhs) {
7981
Set(rhs);
8082
return *this;
8183
}
84+
FilePath& operator=(FilePath&& rhs) {
85+
pathname_ = std::move(rhs.pathname_);
86+
return *this;
87+
}
8288

8389
void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; }
8490

deps/googletest/include/gtest/internal/gtest-internal.h

Lines changed: 12 additions & 17 deletions

0 commit comments

Comments
 (0)