| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/quic_socket_address_coder.h" | 5 #include "net/quic/core/quic_socket_address_coder.h" |
| 6 | 6 |
| 7 #include "net/base/sys_addrinfo.h" | 7 #include "net/base/sys_addrinfo.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 using std::string; | 10 using std::string; |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 TEST(QuicSocketAddressCoderTest, EncodeIPv4) { | 15 TEST(QuicSocketAddressCoderTest, EncodeIPv4) { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 QuicSocketAddressCoder decoder; | 118 QuicSocketAddressCoder decoder; |
| 119 ASSERT_TRUE(decoder.Decode(serialized.data(), serialized.length())); | 119 ASSERT_TRUE(decoder.Decode(serialized.data(), serialized.length())); |
| 120 EXPECT_EQ(encoder.ip(), decoder.ip()); | 120 EXPECT_EQ(encoder.ip(), decoder.ip()); |
| 121 EXPECT_EQ(encoder.port(), decoder.port()); | 121 EXPECT_EQ(encoder.port(), decoder.port()); |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 } // namespace test | 125 } // namespace test |
| 126 } // namespace net | 126 } // namespace net |
| OLD | NEW |