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

Unified Diff: net/spdy/spdy_stream_test_util.h

Issue 1180373004: Cleanup: Remove various DoNothing functions and use base::DoNothing(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/spdy/spdy_stream_test_util.h
diff --git a/net/spdy/spdy_stream_test_util.h b/net/spdy/spdy_stream_test_util.h
index 16f4efb2cfdae38900bf64dcf176464b8df591af..66db00cc9378fbb46406f6a9e1db5a32f2a098c3 100644
--- a/net/spdy/spdy_stream_test_util.h
+++ b/net/spdy/spdy_stream_test_util.h
@@ -88,7 +88,7 @@ class StreamDelegateBase : public SpdyStream::Delegate {
// stream, e.g. its id when it was open.
class StreamDelegateDoNothing : public StreamDelegateBase {
public:
- StreamDelegateDoNothing(const base::WeakPtr<SpdyStream>& stream);
+ explicit StreamDelegateDoNothing(const base::WeakPtr<SpdyStream>& stream);
~StreamDelegateDoNothing() override;
};
@@ -123,7 +123,8 @@ class StreamDelegateWithBody : public StreamDelegateBase {
// Test delegate that closes stream in OnResponseHeadersUpdated().
class StreamDelegateCloseOnHeaders : public StreamDelegateBase {
public:
- StreamDelegateCloseOnHeaders(const base::WeakPtr<SpdyStream>& stream);
+ explicit StreamDelegateCloseOnHeaders(
+ const base::WeakPtr<SpdyStream>& stream);
~StreamDelegateCloseOnHeaders() override;
SpdyResponseHeadersStatus OnResponseHeadersUpdated(

Powered by Google App Engine
This is Rietveld 408576698