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

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

Issue 11568033: Small fixes to allow unit tests to compile with gcc 4.7.x (tested with gcc 4.7.2) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/spdy/spdy_test_util_spdy2.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) 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 *cert, 2, &credential); 521 *cert, 2, &credential);
522 522
523 cert->assign(credential.certs[0]); 523 cert->assign(credential.certs[0]);
524 proof->assign(credential.proof); 524 proof->assign(credential.proof);
525 } 525 }
526 526
527 } // namespace 527 } // namespace
528 528
529 // Constructs a standard SPDY SYN_STREAM frame for a GET request with 529 // Constructs a standard SPDY SYN_STREAM frame for a GET request with
530 // a credential set. 530 // a credential set.
531 SpdyFrame* ConstructCredentialRequestFrame(int slot, const GURL& url, 531 SpdyFrame* ConstructCredentialRequestFrame(size_t slot, const GURL& url,
532 int stream_id) { 532 SpdyStreamId stream_id) {
533 const SpdyHeaderInfo syn_headers = { 533 const SpdyHeaderInfo syn_headers = {
534 SYN_STREAM, 534 SYN_STREAM,
535 stream_id, 535 stream_id,
536 0, 536 0,
537 ConvertRequestPriorityToSpdyPriority(LOWEST, 3), 537 ConvertRequestPriorityToSpdyPriority(LOWEST, 3),
538 slot, 538 slot,
539 CONTROL_FLAG_FIN, 539 CONTROL_FLAG_FIN,
540 false, 540 false,
541 INVALID, 541 INVALID,
542 NULL, 542 NULL,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 720
721 sequenced_worker_pool->Shutdown(); 721 sequenced_worker_pool->Shutdown();
722 } 722 }
723 723
724 #endif // !defined(USE_OPENSSL) 724 #endif // !defined(USE_OPENSSL)
725 725
726 // TODO(willchan): Write a longer test for SpdyStream that exercises all 726 // TODO(willchan): Write a longer test for SpdyStream that exercises all
727 // methods. 727 // methods.
728 728
729 } // namespace net 729 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/spdy/spdy_test_util_spdy2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698