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/buffered_spdy_framer.h" | 5 #include "net/spdy/chromium/buffered_spdy_framer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "net/spdy/spdy_test_util_common.h" | 11 #include "net/spdy/chromium/spdy_test_util_common.h" |
12 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 class TestBufferedSpdyVisitor : public BufferedSpdyFramerVisitorInterface { | 18 class TestBufferedSpdyVisitor : public BufferedSpdyFramerVisitorInterface { |
19 public: | 19 public: |
20 TestBufferedSpdyVisitor() | 20 TestBufferedSpdyVisitor() |
21 : buffered_spdy_framer_(), | 21 : buffered_spdy_framer_(), |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 visitor.SimulateInFramer(altsvc_frame); | 322 visitor.SimulateInFramer(altsvc_frame); |
323 EXPECT_EQ(0, visitor.error_count_); | 323 EXPECT_EQ(0, visitor.error_count_); |
324 EXPECT_EQ(1, visitor.altsvc_count_); | 324 EXPECT_EQ(1, visitor.altsvc_count_); |
325 EXPECT_EQ(altsvc_stream_id, visitor.altsvc_stream_id_); | 325 EXPECT_EQ(altsvc_stream_id, visitor.altsvc_stream_id_); |
326 EXPECT_TRUE(visitor.altsvc_origin_.empty()); | 326 EXPECT_TRUE(visitor.altsvc_origin_.empty()); |
327 ASSERT_EQ(1u, visitor.altsvc_vector_.size()); | 327 ASSERT_EQ(1u, visitor.altsvc_vector_.size()); |
328 EXPECT_EQ(alternative_service, visitor.altsvc_vector_[0]); | 328 EXPECT_EQ(alternative_service, visitor.altsvc_vector_[0]); |
329 } | 329 } |
330 | 330 |
331 } // namespace net | 331 } // namespace net |
OLD | NEW |