OLD | NEW |
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_framer.h" | 5 #include "net/spdy/spdy_framer.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 return buffer_.release(); | 367 return buffer_.release(); |
368 } | 368 } |
369 | 369 |
370 size_t size() const { | 370 size_t size() const { |
371 CHECK(finished_); | 371 CHECK(finished_); |
372 return size_; | 372 return size_; |
373 } | 373 } |
374 | 374 |
375 private: | 375 private: |
376 SpdyMajorVersion version_; | 376 SpdyMajorVersion version_; |
377 TestHeadersHandler* headers_handler_; | |
378 std::unique_ptr<char[]> buffer_; | 377 std::unique_ptr<char[]> buffer_; |
379 size_t size_; | 378 size_t size_; |
380 bool finished_; | 379 bool finished_; |
381 | 380 |
382 DISALLOW_COPY_AND_ASSIGN(DecompressionVisitor); | 381 DISALLOW_COPY_AND_ASSIGN(DecompressionVisitor); |
383 }; | 382 }; |
384 | 383 |
385 private: | 384 private: |
386 DISALLOW_COPY_AND_ASSIGN(SpdyFramerTestUtil); | 385 DISALLOW_COPY_AND_ASSIGN(SpdyFramerTestUtil); |
387 }; | 386 }; |
(...skipping 5600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5988 | 5987 |
5989 EXPECT_EQ(1, visitor->data_frame_count_); | 5988 EXPECT_EQ(1, visitor->data_frame_count_); |
5990 EXPECT_EQ(strlen(four_score), static_cast<unsigned>(visitor->data_bytes_)); | 5989 EXPECT_EQ(strlen(four_score), static_cast<unsigned>(visitor->data_bytes_)); |
5991 EXPECT_EQ(0, visitor->headers_frame_count_); | 5990 EXPECT_EQ(0, visitor->headers_frame_count_); |
5992 } | 5991 } |
5993 } | 5992 } |
5994 | 5993 |
5995 } // namespace test | 5994 } // namespace test |
5996 | 5995 |
5997 } // namespace net | 5996 } // namespace net |
OLD | NEW |