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

Side by Side Diff: net/server/http_server_unittest.cc

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: rebased to 7f3d142161b15869f6bea58ac43c5f52ce5834ac Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/server/http_server.h" 5 #include "net/server/http_server.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } 553 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; }
554 void GetConnectionAttempts(ConnectionAttempts* out) const override { 554 void GetConnectionAttempts(ConnectionAttempts* out) const override {
555 out->clear(); 555 out->clear();
556 } 556 }
557 void ClearConnectionAttempts() override {} 557 void ClearConnectionAttempts() override {}
558 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 558 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
559 int64_t GetTotalReceivedBytes() const override { 559 int64_t GetTotalReceivedBytes() const override {
560 NOTIMPLEMENTED(); 560 NOTIMPLEMENTED();
561 return 0; 561 return 0;
562 } 562 }
563 void DumpMemoryStats(
564 base::trace_event::MemoryAllocatorDump* dump) const override{};
563 565
564 // Socket 566 // Socket
565 int Read(IOBuffer* buf, 567 int Read(IOBuffer* buf,
566 int buf_len, 568 int buf_len,
567 const CompletionCallback& callback) override { 569 const CompletionCallback& callback) override {
568 if (!connected_) { 570 if (!connected_) {
569 return ERR_SOCKET_NOT_CONNECTED; 571 return ERR_SOCKET_NOT_CONNECTED;
570 } 572 }
571 if (pending_read_data_.empty()) { 573 if (pending_read_data_.empty()) {
572 read_buf_ = buf; 574 read_buf_ = buf;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 ASSERT_THAT(client.ConnectAndWait(server_address_), IsOk()); 701 ASSERT_THAT(client.ConnectAndWait(server_address_), IsOk());
700 client.Send("GET / HTTP/1.1\r\n\r\n"); 702 client.Send("GET / HTTP/1.1\r\n\r\n");
701 ASSERT_FALSE(RunUntilRequestsReceived(1)); 703 ASSERT_FALSE(RunUntilRequestsReceived(1));
702 ASSERT_EQ(1ul, connection_ids_.size()); 704 ASSERT_EQ(1ul, connection_ids_.size());
703 ASSERT_EQ(0ul, requests_.size()); 705 ASSERT_EQ(0ul, requests_.size());
704 } 706 }
705 707
706 } // namespace 708 } // namespace
707 709
708 } // namespace net 710 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698