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

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

Issue 1458163002: Remove |using base::StringPiece| from net/spdy header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/spdy_alt_svc_wire_format.cc ('k') | net/spdy/spdy_framer_test.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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_alt_svc_wire_format.h" 5 #include "net/spdy/spdy_alt_svc_wire_format.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/platform_test.h" 9 #include "testing/platform_test.h"
10 10
11 using ::testing::_; 11 using ::testing::_;
12 using base::StringPiece;
12 13
13 namespace net { 14 namespace net {
14 15
15 namespace test { 16 namespace test {
16 17
17 // Expose all private methods of class SpdyAltSvcWireFormat. 18 // Expose all private methods of class SpdyAltSvcWireFormat.
18 class SpdyAltSvcWireFormatPeer { 19 class SpdyAltSvcWireFormatPeer {
19 public: 20 public:
20 static void SkipWhiteSpace(StringPiece::const_iterator* c, 21 static void SkipWhiteSpace(StringPiece::const_iterator* c,
21 StringPiece::const_iterator end) { 22 StringPiece::const_iterator end) {
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 StringPiece input(invalid_input); 587 StringPiece input(invalid_input);
587 double probability; 588 double probability;
588 EXPECT_FALSE(test::SpdyAltSvcWireFormatPeer::ParseProbability( 589 EXPECT_FALSE(test::SpdyAltSvcWireFormatPeer::ParseProbability(
589 input.begin(), input.end(), &probability)); 590 input.begin(), input.end(), &probability));
590 } 591 }
591 } 592 }
592 593
593 } // namespace 594 } // namespace
594 595
595 } // namespace net 596 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_alt_svc_wire_format.cc ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698