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

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

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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 | « net/spdy/core/spdy_protocol.cc ('k') | net/spdy/core/spdy_protocol_test_utils.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_protocol.h" 5 #include "net/spdy/core/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/core/spdy_bitmasks.h"
12 #include "net/spdy/spdy_framer.h" 12 #include "net/spdy/core/spdy_framer.h"
13 #include "net/spdy/spdy_test_utils.h" 13 #include "net/spdy/core/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 namespace net { 17 namespace net {
18 18
19 std::ostream& operator<<(std::ostream& os, 19 std::ostream& operator<<(std::ostream& os,
20 const SpdyStreamPrecedence precedence) { 20 const SpdyStreamPrecedence precedence) {
21 if (precedence.is_spdy3_priority()) { 21 if (precedence.is_spdy3_priority()) {
22 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority() 22 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority()
23 << "]"; 23 << "]";
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 EXPECT_EQ("", baz); 249 EXPECT_EQ("", baz);
250 EXPECT_EQ(SpdyStringPiece(d5.data(), d5.data_len()), "the quick brown fox"); 250 EXPECT_EQ(SpdyStringPiece(d5.data(), d5.data_len()), "the quick brown fox");
251 251
252 // Confirms makes a copy of string literal. 252 // Confirms makes a copy of string literal.
253 SpdyDataIR d7(7, "something else"); 253 SpdyDataIR d7(7, "something else");
254 EXPECT_EQ(SpdyStringPiece(d7.data(), d7.data_len()), "something else"); 254 EXPECT_EQ(SpdyStringPiece(d7.data(), d7.data_len()), "something else");
255 } 255 }
256 256
257 } // namespace test 257 } // namespace test
258 } // namespace net 258 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_protocol.cc ('k') | net/spdy/core/spdy_protocol_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698