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

Side by Side Diff: net/spdy/spdy_stream_test_util.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_stream_test_util.h" 5 #include "net/spdy/spdy_stream_test_util.h"
6 6
7 #include "net/base/completion_callback.h" 7 #include "net/base/completion_callback.h"
8 #include "net/spdy/spdy_stream.h" 8 #include "net/spdy/spdy_stream.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 int TestSpdyStreamDelegate::OnResponseReceived(const SpdyHeaderBlock& response, 48 int TestSpdyStreamDelegate::OnResponseReceived(const SpdyHeaderBlock& response,
49 base::Time response_time, 49 base::Time response_time,
50 int status) { 50 int status) {
51 EXPECT_TRUE(send_headers_completed_); 51 EXPECT_TRUE(send_headers_completed_);
52 *response_ = response; 52 *response_ = response;
53 if (headers_.get()) { 53 if (headers_.get()) {
54 EXPECT_EQ(ERR_IO_PENDING, 54 EXPECT_EQ(ERR_IO_PENDING,
55 stream_->WriteHeaders(headers_.release())); 55 stream_->WriteHeaders(headers_.release()));
56 } 56 }
57 if (buf_) { 57 if (buf_.get()) {
58 EXPECT_EQ(ERR_IO_PENDING, 58 EXPECT_EQ(ERR_IO_PENDING,
59 stream_->WriteStreamData(buf_.get(), buf_->size(), 59 stream_->WriteStreamData(buf_.get(), buf_->size(),
60 DATA_FLAG_NONE)); 60 DATA_FLAG_NONE));
61 } 61 }
62 return status; 62 return status;
63 } 63 }
64 64
65 void TestSpdyStreamDelegate::OnHeadersSent() { 65 void TestSpdyStreamDelegate::OnHeadersSent() {
66 headers_sent_++; 66 headers_sent_++;
67 } 67 }
(...skipping 10 matching lines...) Expand all
78 void TestSpdyStreamDelegate::OnClose(int status) { 78 void TestSpdyStreamDelegate::OnClose(int status) {
79 closed_ = true; 79 closed_ = true;
80 CompletionCallback callback = callback_; 80 CompletionCallback callback = callback_;
81 callback_.Reset(); 81 callback_.Reset();
82 callback.Run(OK); 82 callback.Run(OK);
83 } 83 }
84 84
85 } // namespace test 85 } // namespace test
86 86
87 } // namespace net 87 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698