mirror of
https://github.com/google/googletest.git
synced 2025-11-13 08:15:04 -05:00
Revert "Fix gmock_output_test when using MSVC"
This reverts commit 0a3b403fe0.
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
@@ -255,16 +254,12 @@ TEST_F(GMockOutputTest, CatchesLeakedMocks) {
|
||||
}
|
||||
|
||||
MATCHER_P2(IsPair, first, second, "") {
|
||||
return Value(std::get<0>(arg), first) && Value(std::get<1>(arg), second);
|
||||
return Value(arg.first, first) && Value(arg.second, second);
|
||||
}
|
||||
|
||||
TEST_F(GMockOutputTest, PrintsMatcher) {
|
||||
const testing::Matcher<int> m1 = Ge(48);
|
||||
// Explicitly using std::tuple instead of std::pair due to differences between
|
||||
// MSVC and other compilers. std::pair is printed as
|
||||
// "struct std::pair<int,bool>" when using MSVC vs "std::pair<int,bool>" with
|
||||
// other compilers.
|
||||
EXPECT_THAT((std::tuple<int, bool>(42, true)), IsPair(m1, true));
|
||||
EXPECT_THAT((std::pair<int, bool>(42, true)), IsPair(m1, true));
|
||||
}
|
||||
|
||||
void TestCatchesLeakedMocksInAdHocTests() {
|
||||
|
||||
Reference in New Issue
Block a user