Enabling tests which should be fixed by r173829.
[chromium-blink-merge.git] / net / spdy / spdy_http_utils_unittest.cc
blob2419de1dddb0b887a9259cb756591604df9edd00
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
3 // found in the LICENSE file.
5 #include "net/spdy/spdy_http_utils.h"
7 #include "testing/platform_test.h"
9 namespace net {
11 namespace test {
13 TEST(SpdyHttpUtilsTest, ConvertRequestPriorityToSpdy2Priority) {
14 EXPECT_EQ(0, ConvertRequestPriorityToSpdyPriority(HIGHEST, 2));
15 EXPECT_EQ(1, ConvertRequestPriorityToSpdyPriority(MEDIUM, 2));
16 EXPECT_EQ(2, ConvertRequestPriorityToSpdyPriority(LOW, 2));
17 EXPECT_EQ(2, ConvertRequestPriorityToSpdyPriority(LOWEST, 2));
18 EXPECT_EQ(3, ConvertRequestPriorityToSpdyPriority(IDLE, 2));
20 TEST(SpdyHttpUtilsTest, ConvertRequestPriorityToSpdy3Priority) {
21 EXPECT_EQ(0, ConvertRequestPriorityToSpdyPriority(HIGHEST, 3));
22 EXPECT_EQ(1, ConvertRequestPriorityToSpdyPriority(MEDIUM, 3));
23 EXPECT_EQ(2, ConvertRequestPriorityToSpdyPriority(LOW, 3));
24 EXPECT_EQ(3, ConvertRequestPriorityToSpdyPriority(LOWEST, 3));
25 EXPECT_EQ(4, ConvertRequestPriorityToSpdyPriority(IDLE, 3));
28 } // namespace test
30 } // namespace net