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

Side by Side Diff: net/url_request/url_request_http_job_unittest.cc

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 3 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/spdy/spdy_http_stream.cc ('k') | net/websockets/websocket_basic_handshake_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/url_request/url_request_http_job.h" 5 #include "net/url_request/url_request_http_job.h"
6 6
7 #include <stdint.h>
8
7 #include <cstddef> 9 #include <cstddef>
8 10
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/run_loop.h" 14 #include "base/run_loop.h"
13 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
14 #include "net/base/auth.h" 16 #include "net/base/auth.h"
15 #include "net/base/request_priority.h" 17 #include "net/base/request_priority.h"
16 #include "net/base/test_data_directory.h" 18 #include "net/base/test_data_directory.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 void Close(bool not_reusable) override {} 604 void Close(bool not_reusable) override {}
603 605
604 bool IsResponseBodyComplete() const override { return false; } 606 bool IsResponseBodyComplete() const override { return false; }
605 607
606 bool IsConnectionReused() const override { return false; } 608 bool IsConnectionReused() const override { return false; }
607 void SetConnectionReused() override {} 609 void SetConnectionReused() override {}
608 610
609 bool CanReuseConnection() const override { return false; } 611 bool CanReuseConnection() const override { return false; }
610 612
611 int64 GetTotalReceivedBytes() const override { return 0; } 613 int64 GetTotalReceivedBytes() const override { return 0; }
614 int64_t GetTotalSentBytes() const override { return 0; }
612 615
613 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 616 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
614 return false; 617 return false;
615 } 618 }
616 619
617 void GetSSLInfo(SSLInfo* ssl_info) override {} 620 void GetSSLInfo(SSLInfo* ssl_info) override {}
618 621
619 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} 622 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {}
620 623
621 void Drain(HttpNetworkSession* session) override {} 624 void Drain(HttpNetworkSession* session) override {}
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 req_->SetLoadFlags(LOAD_DISABLE_CACHE); 665 req_->SetLoadFlags(LOAD_DISABLE_CACHE);
663 job->Start(); 666 job->Start();
664 base::RunLoop().RunUntilIdle(); 667 base::RunLoop().RunUntilIdle();
665 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); 668 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status());
666 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); 669 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called());
667 } 670 }
668 671
669 } // namespace 672 } // namespace
670 673
671 } // namespace net 674 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.cc ('k') | net/websockets/websocket_basic_handshake_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698