mirror of
https://github.com/google/googletest.git
synced 2025-12-21 11:04:54 +08:00
Merge branch 'google:main' into master
This commit is contained in:
commit
88c3f5a8f9
@ -689,25 +689,29 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
||||
|
||||
// A macro to disallow copy operator=
|
||||
// This should be used in the private: declarations for a class.
|
||||
// NOLINT is for modernize-use-trailing-return-type in macro uses.
|
||||
#define GTEST_DISALLOW_ASSIGN_(type) \
|
||||
type& operator=(type const &) = delete
|
||||
type& operator=(type const&) = delete /* NOLINT */
|
||||
|
||||
// A macro to disallow copy constructor and operator=
|
||||
// This should be used in the private: declarations for a class.
|
||||
// NOLINT is for modernize-use-trailing-return-type in macro uses.
|
||||
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type) \
|
||||
type(type const&) = delete; \
|
||||
type& operator=(type const&) = delete
|
||||
type& operator=(type const&) = delete /* NOLINT */
|
||||
|
||||
// A macro to disallow move operator=
|
||||
// This should be used in the private: declarations for a class.
|
||||
// NOLINT is for modernize-use-trailing-return-type in macro uses.
|
||||
#define GTEST_DISALLOW_MOVE_ASSIGN_(type) \
|
||||
type& operator=(type &&) noexcept = delete
|
||||
type& operator=(type&&) noexcept = delete /* NOLINT */
|
||||
|
||||
// A macro to disallow move constructor and operator=
|
||||
// This should be used in the private: declarations for a class.
|
||||
// NOLINT is for modernize-use-trailing-return-type in macro uses.
|
||||
#define GTEST_DISALLOW_MOVE_AND_ASSIGN_(type) \
|
||||
type(type&&) noexcept = delete; \
|
||||
type& operator=(type&&) noexcept = delete
|
||||
type& operator=(type&&) noexcept = delete /* NOLINT */
|
||||
|
||||
// Tell the compiler to warn about unused return values for functions declared
|
||||
// with this macro. The macro should be used on function declarations
|
||||
|
||||
@ -5849,9 +5849,7 @@ bool UnitTestImpl::RunAllTests() {
|
||||
return true;
|
||||
}
|
||||
|
||||
random_seed_ = GTEST_FLAG_GET(shuffle)
|
||||
? GetRandomSeedFromFlag(GTEST_FLAG_GET(random_seed))
|
||||
: 0;
|
||||
random_seed_ = GetRandomSeedFromFlag(GTEST_FLAG_GET(random_seed));
|
||||
|
||||
// True if and only if at least one test has failed.
|
||||
bool failed = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user