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

Unified Diff: net/quic/quic_data_writer_test.cc

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 5 years, 10 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_data_writer.cc ('k') | net/quic/quic_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_data_writer_test.cc
diff --git a/net/quic/quic_data_writer_test.cc b/net/quic/quic_data_writer_test.cc
index 01b3c6d060b40fdf9f77cb587b65e5ebb365f876..a7ac2a8ea41461b2eb2443cad5a749452c655fd4 100644
--- a/net/quic/quic_data_writer_test.cc
+++ b/net/quic/quic_data_writer_test.cc
@@ -13,30 +13,6 @@ namespace net {
namespace test {
namespace {
-TEST(QuicDataWriterTest, WriteUInt8ToOffset) {
- char buffer[4];
- QuicDataWriter writer(4, buffer);
-
- writer.WriteUInt32(0xfefdfcfb);
- EXPECT_TRUE(writer.WriteUInt8ToOffset(1, 0));
- EXPECT_TRUE(writer.WriteUInt8ToOffset(2, 1));
- EXPECT_TRUE(writer.WriteUInt8ToOffset(3, 2));
- EXPECT_TRUE(writer.WriteUInt8ToOffset(4, 3));
-
- EXPECT_EQ(1, writer.data()[0]);
- EXPECT_EQ(2, writer.data()[1]);
- EXPECT_EQ(3, writer.data()[2]);
- EXPECT_EQ(4, writer.data()[3]);
-}
-
-TEST(QuicDataWriterDeathTest, WriteUInt8ToOffset) {
- char buffer[4];
- QuicDataWriter writer(4, buffer);
-
- EXPECT_DFATAL(EXPECT_FALSE(writer.WriteUInt8ToOffset(5, 4)),
- "offset: 4 >= capacity: 4");
-}
-
TEST(QuicDataWriterTest, SanityCheckUFloat16Consts) {
// Check the arithmetic on the constants - otherwise the values below make
// no sense.
« no previous file with comments | « net/quic/quic_data_writer.cc ('k') | net/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698