diff options
Diffstat (limited to 'chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc')
-rw-r--r-- | chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc b/chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc index a5f6166a161..bc6137c5b88 100644 --- a/chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc +++ b/chromium/net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_test.cc @@ -6,14 +6,14 @@ // Tests of HpackStringDecoder. -#include "testing/gtest/include/gtest/gtest.h" +#include "absl/strings/string_view.h" #include "net/third_party/quiche/src/http2/hpack/decoder/hpack_string_collector.h" #include "net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder_listener.h" #include "net/third_party/quiche/src/http2/hpack/tools/hpack_block_builder.h" #include "net/third_party/quiche/src/http2/platform/api/http2_test_helpers.h" #include "net/third_party/quiche/src/http2/test_tools/http2_random.h" #include "net/third_party/quiche/src/http2/tools/random_decoder_test.h" -#include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h" +#include "net/third_party/quiche/src/common/platform/api/quiche_test.h" using ::testing::AssertionResult; @@ -43,13 +43,13 @@ class HpackStringDecoderTest : public RandomDecoderTest { return decoder_.Resume(b, &listener_); } - AssertionResult Collected(quiche::QuicheStringPiece s, bool huffman_encoded) { + AssertionResult Collected(absl::string_view s, bool huffman_encoded) { HTTP2_VLOG(1) << collector_; return collector_.Collected(s, huffman_encoded); } // expected_str is a std::string rather than a const std::string& or - // QuicheStringPiece so that the lambda makes a copy of the string, and thus + // absl::string_view so that the lambda makes a copy of the string, and thus // the string to be passed to Collected outlives the call to MakeValidator. Validator MakeValidator(const std::string& expected_str, bool expected_huffman) { @@ -112,7 +112,7 @@ TEST_F(HpackStringDecoderTest, DecodeShortString) { { Validator validator = ValidateDoneAndOffset(11, MakeValidator("start end.", kUncompressed)); - quiche::QuicheStringPiece data("\x0astart end."); + absl::string_view data("\x0astart end."); DecodeBuffer b(data); EXPECT_TRUE( DecodeAndValidateSeveralWays(&b, kMayReturnZeroOnFirst, validator)); |