Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: net/http2/hpack/http2_hpack_constants_test.cc

Issue 2554683003: Revert of Add new HTTP/2 and HPACK decoder in net/http2/. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/http2/hpack/http2_hpack_constants.h"
6
7 #include "base/logging.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace net {
12 namespace test {
13 namespace {
14
15 class HpackEntryTypeTest : public testing::Test {};
16
17 TEST(HpackEntryTypeTest, HpackEntryTypeToString) {
18 EXPECT_EQ("kIndexedHeader",
19 HpackEntryTypeToString(HpackEntryType::kIndexedHeader));
20 EXPECT_EQ("kDynamicTableSizeUpdate",
21 HpackEntryTypeToString(HpackEntryType::kDynamicTableSizeUpdate));
22 EXPECT_EQ("kIndexedLiteralHeader",
23 HpackEntryTypeToString(HpackEntryType::kIndexedLiteralHeader));
24 EXPECT_EQ("kUnindexedLiteralHeader",
25 HpackEntryTypeToString(HpackEntryType::kUnindexedLiteralHeader));
26 EXPECT_EQ("kNeverIndexedLiteralHeader",
27 HpackEntryTypeToString(HpackEntryType::kNeverIndexedLiteralHeader));
28 EXPECT_EQ("UnknownHpackEntryType(12321)",
29 HpackEntryTypeToString(static_cast<HpackEntryType>(12321)));
30 }
31
32 } // namespace
33 } // namespace test
34 } // namespace net
OLDNEW
« no previous file with comments | « net/http2/hpack/http2_hpack_constants.cc ('k') | net/http2/hpack/huffman/http2_hpack_huffman_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698