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

Unified Diff: net/quic/quic_http_utils_test.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_http_utils.cc ('k') | net/quic/quic_multipath_received_packet_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_utils_test.cc
diff --git a/net/quic/quic_http_utils_test.cc b/net/quic/quic_http_utils_test.cc
deleted file mode 100644
index 5f33096a14b8e44ff6c32b2d1c6c93349b4966a3..0000000000000000000000000000000000000000
--- a/net/quic/quic_http_utils_test.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/quic/quic_http_utils.h"
-
-#include <stdint.h>
-
-#include <limits>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-namespace test {
-
-TEST(QuicHttpUtilsTest, ConvertRequestPriorityToQuicPriority) {
- EXPECT_EQ(0u, ConvertRequestPriorityToQuicPriority(HIGHEST));
- EXPECT_EQ(1u, ConvertRequestPriorityToQuicPriority(MEDIUM));
- EXPECT_EQ(2u, ConvertRequestPriorityToQuicPriority(LOW));
- EXPECT_EQ(3u, ConvertRequestPriorityToQuicPriority(LOWEST));
- EXPECT_EQ(4u, ConvertRequestPriorityToQuicPriority(IDLE));
-}
-
-TEST(QuicHttpUtilsTest, ConvertQuicPriorityToRequestPriority) {
- EXPECT_EQ(HIGHEST, ConvertQuicPriorityToRequestPriority(0));
- EXPECT_EQ(MEDIUM, ConvertQuicPriorityToRequestPriority(1));
- EXPECT_EQ(LOW, ConvertQuicPriorityToRequestPriority(2));
- EXPECT_EQ(LOWEST, ConvertQuicPriorityToRequestPriority(3));
- EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(4));
- // These are invalid values, but we should still handle them
- // gracefully. TODO(rtenneti): should we test for all possible values of
- // uint32_t?
- for (int i = 5; i < std::numeric_limits<uint8_t>::max(); ++i) {
- EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(i));
- }
-}
-
-} // namespace test
-} // namespace net
« no previous file with comments | « net/quic/quic_http_utils.cc ('k') | net/quic/quic_multipath_received_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698