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

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

Issue 12743006: [SPDY] Refactor tests in preparation for a fix for a session flow control bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_network_transaction_spdy2_unittest.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_http_stream.h" 5 #include "net/spdy/spdy_http_stream.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "crypto/ec_private_key.h" 9 #include "crypto/ec_private_key.h"
10 #include "crypto/ec_signature_creator.h" 10 #include "crypto/ec_signature_creator.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 "GET", 710 "GET",
711 ":path", 711 ":path",
712 req.get(), 712 req.get(),
713 ":host", 713 ":host",
714 host.get(), 714 host.get(),
715 ":scheme", 715 ":scheme",
716 scheme.get(), 716 scheme.get(),
717 ":version", 717 ":version",
718 "HTTP/1.1" 718 "HTTP/1.1"
719 }; 719 };
720 return ConstructSpdyPacket( 720 return ConstructSpdyFrame(
721 syn_headers, NULL, 0, headers, arraysize(headers)/2); 721 syn_headers, NULL, 0, headers, arraysize(headers)/2);
722 } 722 }
723 723
724 // TODO(rch): When openssl supports server bound certifictes, this 724 // TODO(rch): When openssl supports server bound certifictes, this
725 // guard can be removed 725 // guard can be removed
726 #if !defined(USE_OPENSSL) 726 #if !defined(USE_OPENSSL)
727 // Test that if we request a resource for a new origin on a session that 727 // Test that if we request a resource for a new origin on a session that
728 // used domain bound certificates, that we send a CREDENTIAL frame for 728 // used domain bound certificates, that we send a CREDENTIAL frame for
729 // the new domain before we send the new request. 729 // the new domain before we send the new request.
730 void SpdyHttpStreamSpdy3Test::TestSendCredentials( 730 void SpdyHttpStreamSpdy3Test::TestSendCredentials(
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 863
864 sequenced_worker_pool->Shutdown(); 864 sequenced_worker_pool->Shutdown();
865 } 865 }
866 866
867 #endif // !defined(USE_OPENSSL) 867 #endif // !defined(USE_OPENSSL)
868 868
869 // TODO(willchan): Write a longer test for SpdyStream that exercises all 869 // TODO(willchan): Write a longer test for SpdyStream that exercises all
870 // methods. 870 // methods.
871 871
872 } // namespace net 872 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_network_transaction_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698