Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: net/test/gtest_util.h

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ReadWriteLock, add comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/test/gtest_util.h
diff --git a/net/test/gtest_util.h b/net/test/gtest_util.h
index 22d82b0bfa91f062d8586ce2e429a6731b195c30..81cd88179f31374c774e7316b266074df081af49 100644
--- a/net/test/gtest_util.h
+++ b/net/test/gtest_util.h
@@ -43,11 +43,9 @@ MATCHER(IsOk,
::base::test::MockLog gtest_log; \
::net::test::ScopedDisableExitOnDFatal gtest_disable_exit; \
using ::testing::_; \
- EXPECT_CALL(gtest_log, Log(_, _, _, _, _)) \
- .WillRepeatedly(::testing::Return(false)); \
+ EXPECT_CALL(gtest_log, Log(_, _, _, _, _)).Times(::testing::AtLeast(0)); \
EXPECT_CALL(gtest_log, Log(::logging::LOG_##severity, _, _, _, matcher)) \
- .Times(::testing::AtLeast(1)) \
- .WillOnce(::testing::Return(false)); \
+ .Times(::testing::AtLeast(1)); \
gtest_log.StartCapturingLogs(); \
{ statement; } \
gtest_log.StopCapturingLogs(); \

Powered by Google App Engine
This is Rietveld 408576698