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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 1413353003: Update handling of std::function objects (in this case mainly TODOs). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105311433
Patch Set: 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 | « no previous file | net/tools/quic/test_tools/quic_test_server.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 <stddef.h> 5 #include <stddef.h>
6 #include <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void ExpectFlowControlsSynced(QuicFlowController* client, 491 void ExpectFlowControlsSynced(QuicFlowController* client,
492 QuicFlowController* server) { 492 QuicFlowController* server) {
493 EXPECT_EQ(QuicFlowControllerPeer::SendWindowSize(client), 493 EXPECT_EQ(QuicFlowControllerPeer::SendWindowSize(client),
494 QuicFlowControllerPeer::ReceiveWindowSize(server)); 494 QuicFlowControllerPeer::ReceiveWindowSize(server));
495 EXPECT_EQ(QuicFlowControllerPeer::ReceiveWindowSize(client), 495 EXPECT_EQ(QuicFlowControllerPeer::ReceiveWindowSize(client),
496 QuicFlowControllerPeer::SendWindowSize(server)); 496 QuicFlowControllerPeer::SendWindowSize(server));
497 } 497 }
498 498
499 // Must be called before Initialize to have effect. 499 // Must be called before Initialize to have effect.
500 void SetSpdyStreamCreator(QuicTestServer::StreamCreationFunction function) { 500 void SetSpdyStreamCreator(QuicTestServer::StreamCreationFunction function) {
501 // TODO(rtenneti) use std::move when supported.
501 stream_creator_ = function; 502 stream_creator_ = function;
502 } 503 }
503 504
504 bool initialized_; 505 bool initialized_;
505 IPEndPoint server_address_; 506 IPEndPoint server_address_;
506 string server_hostname_; 507 string server_hostname_;
507 scoped_ptr<ServerThread> server_thread_; 508 scoped_ptr<ServerThread> server_thread_;
508 scoped_ptr<QuicTestClient> client_; 509 scoped_ptr<QuicTestClient> client_;
509 PacketDroppingTestWriter* client_writer_; 510 PacketDroppingTestWriter* client_writer_;
510 PacketDroppingTestWriter* server_writer_; 511 PacketDroppingTestWriter* server_writer_;
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 // There will be buffered data to write in the client's stream. 2086 // There will be buffered data to write in the client's stream.
2086 ReliableQuicStream* stream = client_->client()->session()->GetStream(5); 2087 ReliableQuicStream* stream = client_->client()->session()->GetStream(5);
2087 EXPECT_TRUE(stream != nullptr && stream->HasBufferedData()); 2088 EXPECT_TRUE(stream != nullptr && stream->HasBufferedData());
2088 } 2089 }
2089 } 2090 }
2090 2091
2091 } // namespace 2092 } // namespace
2092 } // namespace test 2093 } // namespace test
2093 } // namespace tools 2094 } // namespace tools
2094 } // namespace net 2095 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/tools/quic/test_tools/quic_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698