| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |