OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/dns/dns_hosts.h" | 5 #include "net/dns/dns_hosts.h" |
6 | 6 |
7 #include "net/base/ip_address.h" | 7 #include "net/base/ip_address.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 TEST(DnsHostsTest, HostsParser_EndsWithNewlineAndToken) { | 177 TEST(DnsHostsTest, HostsParser_EndsWithNewlineAndToken) { |
178 DnsHosts hosts; | 178 DnsHosts hosts; |
179 ParseHosts("127.0.0.1 localhost\ntoken", &hosts); | 179 ParseHosts("127.0.0.1 localhost\ntoken", &hosts); |
180 EXPECT_EQ(1u, hosts.size()); | 180 EXPECT_EQ(1u, hosts.size()); |
181 } | 181 } |
182 | 182 |
183 } // namespace | 183 } // namespace |
184 | 184 |
185 } // namespace net | 185 } // namespace net |
186 | |
OLD | NEW |