| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "net/spdy/core/spdy_protocol_test_utils.h" |
| 7 #include "net/spdy/platform/api/spdy_string_piece.h" | 8 #include "net/spdy/platform/api/spdy_string_piece.h" |
| 8 #include "net/spdy/spdy_protocol_test_utils.h" | |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 // TODO(jamessynge): Where it makes sense in these functions, it would be nice | 13 // TODO(jamessynge): Where it makes sense in these functions, it would be nice |
| 14 // to make use of the existing gMock matchers here, instead of rolling our own. | 14 // to make use of the existing gMock matchers here, instead of rolling our own. |
| 15 | 15 |
| 16 ::testing::AssertionResult VerifySpdyFrameWithHeaderBlockIREquals( | 16 ::testing::AssertionResult VerifySpdyFrameWithHeaderBlockIREquals( |
| 17 const SpdyFrameWithHeaderBlockIR& expected, | 17 const SpdyFrameWithHeaderBlockIR& expected, |
| 18 const SpdyFrameWithHeaderBlockIR& actual) { | 18 const SpdyFrameWithHeaderBlockIR& actual) { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (expected.stream_id() != actual.stream_id()) | 183 if (expected.stream_id() != actual.stream_id()) |
| 184 return ::testing::AssertionFailure(); | 184 return ::testing::AssertionFailure(); |
| 185 if (expected.delta() != actual.delta()) | 185 if (expected.delta() != actual.delta()) |
| 186 return ::testing::AssertionFailure(); | 186 return ::testing::AssertionFailure(); |
| 187 | 187 |
| 188 return ::testing::AssertionSuccess(); | 188 return ::testing::AssertionSuccess(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace test | 191 } // namespace test |
| 192 } // namespace net | 192 } // namespace net |
| OLD | NEW |