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

Side by Side Diff: net/http/http_transaction_test_util.cc

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « net/http/http_transaction_test_util.h ('k') | net/http/proxy_connect_redirect_http_stream.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/http/http_transaction_test_util.h" 5 #include "net/http/http_transaction_test_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 void MockNetworkTransaction::StopCaching() { 318 void MockNetworkTransaction::StopCaching() {
319 if (transaction_factory_.get()) 319 if (transaction_factory_.get())
320 transaction_factory_->TransactionStopCaching(); 320 transaction_factory_->TransactionStopCaching();
321 } 321 }
322 322
323 bool MockNetworkTransaction::GetFullRequestHeaders( 323 bool MockNetworkTransaction::GetFullRequestHeaders(
324 HttpRequestHeaders* headers) const { 324 HttpRequestHeaders* headers) const {
325 return false; 325 return false;
326 } 326 }
327 327
328 int64 MockNetworkTransaction::GetTotalReceivedBytes() const { 328 int64_t MockNetworkTransaction::GetTotalReceivedBytes() const {
329 return received_bytes_; 329 return received_bytes_;
330 } 330 }
331 331
332 int64_t MockNetworkTransaction::GetTotalSentBytes() const { 332 int64_t MockNetworkTransaction::GetTotalSentBytes() const {
333 return sent_bytes_; 333 return sent_bytes_;
334 } 334 }
335 335
336 void MockNetworkTransaction::DoneReading() { 336 void MockNetworkTransaction::DoneReading() {
337 if (transaction_factory_.get()) 337 if (transaction_factory_.get())
338 transaction_factory_->TransactionDoneReading(); 338 transaction_factory_->TransactionDoneReading();
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 content.append(buf->data(), rv); 551 content.append(buf->data(), rv);
552 else if (rv < 0) 552 else if (rv < 0)
553 return rv; 553 return rv;
554 } while (rv > 0); 554 } while (rv > 0);
555 555
556 result->swap(content); 556 result->swap(content);
557 return OK; 557 return OK;
558 } 558 }
559 559
560 } // namespace net 560 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_transaction_test_util.h ('k') | net/http/proxy_connect_redirect_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698