Index: net/spdy/spdy_frame_reader_test.cc |
diff --git a/net/spdy/spdy_frame_reader_test.cc b/net/spdy/spdy_frame_reader_test.cc |
index 8db2d992e7030239125f79ad942097e274c5c61f..867d97c1788457be70c6e581144179ed8dd2fe5b 100644 |
--- a/net/spdy/spdy_frame_reader_test.cc |
+++ b/net/spdy/spdy_frame_reader_test.cc |
@@ -15,7 +15,7 @@ namespace net { |
TEST(SpdyFrameReaderTest, ReadUInt16) { |
// Frame data in network byte order. |
const uint16 kFrameData[] = { |
- htons(1), htons(1<<15), |
+ base::HostToNet16(1), base::HostToNet16(1 << 15), |
}; |
SpdyFrameReader frame_reader(reinterpret_cast<const char*>(kFrameData), |
@@ -35,7 +35,7 @@ TEST(SpdyFrameReaderTest, ReadUInt16) { |
TEST(SpdyFrameReaderTest, ReadUInt32) { |
// Frame data in network byte order. |
const uint32 kFrameData[] = { |
- htonl(1), htonl(0x80000000), |
+ base::HostToNet32(1), base::HostToNet32(0x80000000), |
}; |
SpdyFrameReader frame_reader(reinterpret_cast<const char *>(kFrameData), |