OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/hpack/hpack_encoder.h" | 5 #include "net/spdy/core/hpack/hpack_encoder.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "net/base/arena.h" | 10 #include "net/base/arena.h" |
11 #include "net/spdy/hpack/hpack_huffman_table.h" | 11 #include "net/spdy/core/hpack/hpack_huffman_table.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 using testing::ElementsAre; | 17 using testing::ElementsAre; |
18 | 18 |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 class HpackHeaderTablePeer { | 21 class HpackHeaderTablePeer { |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 CompareWithExpectedEncoding(headers); | 578 CompareWithExpectedEncoding(headers); |
579 | 579 |
580 HpackEntry* new_entry = &peer_.table_peer().dynamic_entries()->front(); | 580 HpackEntry* new_entry = &peer_.table_peer().dynamic_entries()->front(); |
581 EXPECT_EQ(new_entry->name(), "key3"); | 581 EXPECT_EQ(new_entry->name(), "key3"); |
582 EXPECT_EQ(new_entry->value(), "value3"); | 582 EXPECT_EQ(new_entry->value(), "value3"); |
583 } | 583 } |
584 | 584 |
585 } // namespace | 585 } // namespace |
586 | 586 |
587 } // namespace net | 587 } // namespace net |
OLD | NEW |