diff options
author | paul.sapunaru <paul.sapunaru@intel.com> | 2015-12-17 01:30:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-17 09:30:45 +0000 |
commit | 8cb7685d3b425e67e71c868e9554eece173e4916 (patch) | |
tree | 206cb06d2d7d82a56485bb257eff2720a33e7961 /net/websockets | |
parent | da99b3860fd79989d0e1a82bbe503ce422a202f3 (diff) | |
download | chromium_src-8cb7685d3b425e67e71c868e9554eece173e4916.zip chromium_src-8cb7685d3b425e67e71c868e9554eece173e4916.tar.gz chromium_src-8cb7685d3b425e67e71c868e9554eece173e4916.tar.bz2 |
Use const reference instead of value in WebSocketDeflateStreamTest.
Small cleanup which replaces the const value with const reference return value
of the callback() functions in ReadFramesStub and WriteFramesStub classes.
BUG=568959
TEST=net_unittests
Review URL: https://codereview.chromium.org/1531653003
Cr-Commit-Position: refs/heads/master@{#365789}
Diffstat (limited to 'net/websockets')
-rw-r--r-- | net/websockets/websocket_deflate_stream_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/websockets/websocket_deflate_stream_test.cc b/net/websockets/websocket_deflate_stream_test.cc index 8bd02ac..28d3499 100644 --- a/net/websockets/websocket_deflate_stream_test.cc +++ b/net/websockets/websocket_deflate_stream_test.cc @@ -315,7 +315,7 @@ class ReadFramesStub { } int result() const { return result_; } - const CompletionCallback callback() const { return callback_; } + const CompletionCallback& callback() const { return callback_; } std::vector<scoped_ptr<WebSocketFrame>>* frames_passed() { return frames_passed_; } @@ -347,7 +347,7 @@ class WriteFramesStub { } int result() const { return result_; } - const CompletionCallback callback() const { return callback_; } + const CompletionCallback& callback() const { return callback_; } std::vector<scoped_ptr<WebSocketFrame>>* frames() { return &frames_; } private: |