Lines Matching refs:CopyLogger
68 struct CopyLogger { struct
69 CopyLogger() { ++TimesConstructed; } in CopyLogger() function
70 CopyLogger(const CopyLogger& tocopy) { ++TimesConstructed; ++TimesCopied; } in CopyLogger() function
71 ~CopyLogger() = default;
77 void SomeLoggerMethRef(const CopyLogger& logy, const CopyLogger* ptr, bool* b) { in SomeLoggerMethRef()
81 void SomeLoggerMethCopy(CopyLogger logy, const CopyLogger* ptr, bool* b) { in SomeLoggerMethCopy()
85 int CopyLogger::TimesCopied = 0;
86 int CopyLogger::TimesConstructed = 0;
91 CopyLogger logger; in TEST()
92 EXPECT_EQ(0, CopyLogger::TimesCopied); in TEST()
93 EXPECT_EQ(1, CopyLogger::TimesConstructed); in TEST()
98 std::tuple<CopyLogger, CopyLogger*, bool*> tuple(logger, &logger, &res); in TEST()
99 std::get<CopyLogger*>(tuple) = &std::get<CopyLogger>(tuple); in TEST()
100 EXPECT_EQ(2, CopyLogger::TimesConstructed); in TEST()
101 EXPECT_EQ(1, CopyLogger::TimesCopied); in TEST()
107 EXPECT_EQ(2, CopyLogger::TimesConstructed); in TEST()
108 EXPECT_EQ(1, CopyLogger::TimesCopied); in TEST()
114 EXPECT_EQ(3, CopyLogger::TimesConstructed); in TEST()
115 EXPECT_EQ(2, CopyLogger::TimesCopied); in TEST()