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

Unified Diff: net/quic/quic_chromium_client_stream_test.cc

Issue 1680643002: Refactor gmock_mutant.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_apitest.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_chromium_client_stream_test.cc
diff --git a/net/quic/quic_chromium_client_stream_test.cc b/net/quic/quic_chromium_client_stream_test.cc
index 3edba3bb4adf3bc18dbee704400bde25519108c2..081828bd588ce28da7e78c793d7d8f48c4efc82e 100644
--- a/net/quic/quic_chromium_client_stream_test.cc
+++ b/net/quic/quic_chromium_client_stream_test.cc
@@ -239,7 +239,8 @@ TEST_P(QuicChromiumClientStreamTest, OnDataAvailable) {
EXPECT_CALL(delegate_, OnDataAvailable())
.WillOnce(testing::Invoke(
- CreateFunctor(this, &QuicChromiumClientStreamTest::ReadData,
+ CreateFunctor(&QuicChromiumClientStreamTest::ReadData,
+ base::Unretained(this),
StringPiece(data, arraysize(data) - 1))));
base::MessageLoop::current()->RunUntilIdle();
@@ -275,7 +276,8 @@ TEST_P(QuicChromiumClientStreamTest, OnDataAvailableWithError) {
/*offset=*/0, data));
EXPECT_CALL(delegate_, OnDataAvailable())
.WillOnce(testing::Invoke(CreateFunctor(
- stream_, &QuicChromiumClientStream::Reset, QUIC_STREAM_CANCELLED)));
+ &QuicChromiumClientStream::Reset,
+ base::Unretained(stream_), QUIC_STREAM_CANCELLED)));
base::MessageLoop::current()->RunUntilIdle();
EXPECT_CALL(delegate_, OnClose(QUIC_NO_ERROR));
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_apitest.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698