| 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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "chrome/browser/extensions/api/dial/dial_device_data.h" | 8 #include "chrome/browser/extensions/api/dial/dial_device_data.h" |
| 9 #include "chrome/browser/extensions/api/dial/dial_service.h" | 9 #include "chrome/browser/extensions/api/dial/dial_service.h" |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| 11 #include "net/base/network_interfaces.h" |
| 11 #include "net/log/test_net_log.h" | 12 #include "net/log/test_net_log.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 15 |
| 15 using base::Time; | 16 using base::Time; |
| 16 using base::TimeDelta; | 17 using base::TimeDelta; |
| 17 using ::testing::A; | 18 using ::testing::A; |
| 18 using ::testing::AtLeast; | 19 using ::testing::AtLeast; |
| 19 using ::testing::Return; | 20 using ::testing::Return; |
| 20 | 21 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 // Empty USN | 218 // Empty USN |
| 218 EXPECT_FALSE(DialServiceImpl::DialSocket::ParseResponse( | 219 EXPECT_FALSE(DialServiceImpl::DialSocket::ParseResponse( |
| 219 "HTTP/1.1 OK\r\n" | 220 "HTTP/1.1 OK\r\n" |
| 220 "LOCATION: http://127.0.0.1/dd.xml\r\n" | 221 "LOCATION: http://127.0.0.1/dd.xml\r\n" |
| 221 "USN:\r\n\r\n", | 222 "USN:\r\n\r\n", |
| 222 now, ¬_parsed)); | 223 now, ¬_parsed)); |
| 223 } | 224 } |
| 224 | 225 |
| 225 } // namespace extensions | 226 } // namespace extensions |
| OLD | NEW |