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

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

Issue 2589053002: Adds std:: to <iosfwd> typedefs. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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_protocol.h" 5 #include "net/spdy/spdy_protocol.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 10
11 #include "net/spdy/spdy_bitmasks.h" 11 #include "net/spdy/spdy_bitmasks.h"
12 #include "net/spdy/spdy_framer.h" 12 #include "net/spdy/spdy_framer.h"
13 #include "net/spdy/spdy_test_utils.h" 13 #include "net/spdy/spdy_test_utils.h"
14 #include "net/test/gtest_util.h" 14 #include "net/test/gtest_util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using std::ostream;
18 using std::string; 17 using std::string;
19 18
20 namespace net { 19 namespace net {
21 20
22 ostream& operator<<(ostream& os, const SpdyStreamPrecedence precedence) { 21 std::ostream& operator<<(std::ostream& os,
22 const SpdyStreamPrecedence precedence) {
23 if (precedence.is_spdy3_priority()) { 23 if (precedence.is_spdy3_priority()) {
24 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority() 24 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority()
25 << "]"; 25 << "]";
26 } else { 26 } else {
27 os << "SpdyStreamPrecedence[parent_id=" << precedence.parent_id() 27 os << "SpdyStreamPrecedence[parent_id=" << precedence.parent_id()
28 << ", weight=" << precedence.weight() 28 << ", weight=" << precedence.weight()
29 << ", is_exclusive=" << precedence.is_exclusive() << "]"; 29 << ", is_exclusive=" << precedence.is_exclusive() << "]";
30 } 30 }
31 return os; 31 return os;
32 } 32 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 SpdyStreamPrecedence(1, 2, true)); 263 SpdyStreamPrecedence(1, 2, true));
264 264
265 SpdyStreamPrecedence spdy3_prec(3); 265 SpdyStreamPrecedence spdy3_prec(3);
266 SpdyStreamPrecedence h2_prec(spdy3_prec.parent_id(), spdy3_prec.weight(), 266 SpdyStreamPrecedence h2_prec(spdy3_prec.parent_id(), spdy3_prec.weight(),
267 spdy3_prec.is_exclusive()); 267 spdy3_prec.is_exclusive());
268 EXPECT_NE(spdy3_prec, h2_prec); 268 EXPECT_NE(spdy3_prec, h2_prec);
269 } 269 }
270 270
271 } // namespace test 271 } // namespace test
272 } // namespace net 272 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698