| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/api/mdns/dns_sd_registry.h" | 5 #include "chrome/browser/extensions/api/mdns/dns_sd_registry.h" |
| 6 #include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h" | 6 #include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h" |
| 7 #include "chrome/browser/extensions/api/mdns/dns_sd_device_lister.h" | 7 #include "chrome/browser/extensions/api/mdns/dns_sd_device_lister.h" |
| 8 #include "chrome/browser/local_discovery/service_discovery_host_client.h" | |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 10 |
| 12 namespace extensions { | 11 namespace extensions { |
| 13 | 12 |
| 14 class MockDnsSdDeviceLister : public DnsSdDeviceLister { | 13 class MockDnsSdDeviceLister : public DnsSdDeviceLister { |
| 15 public: | 14 public: |
| 16 MockDnsSdDeviceLister() : DnsSdDeviceLister(NULL, NULL, "") {} | 15 MockDnsSdDeviceLister() : DnsSdDeviceLister(NULL, NULL, "") {} |
| 17 virtual ~MockDnsSdDeviceLister() {} | 16 virtual ~MockDnsSdDeviceLister() {} |
| 18 | 17 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 service.ip_address = "192.168.0.100"; | 228 service.ip_address = "192.168.0.100"; |
| 230 registry_->GetDelegate()->ServiceChanged(service_type, true, service); | 229 registry_->GetDelegate()->ServiceChanged(service_type, true, service); |
| 231 // Update with changed ip address. | 230 // Update with changed ip address. |
| 232 service.ip_address = "192.168.0.101"; | 231 service.ip_address = "192.168.0.101"; |
| 233 registry_->GetDelegate()->ServiceChanged(service_type, false, service); | 232 registry_->GetDelegate()->ServiceChanged(service_type, false, service); |
| 234 // Update with no changes to the service. | 233 // Update with no changes to the service. |
| 235 registry_->GetDelegate()->ServiceChanged(service_type, false, service); | 234 registry_->GetDelegate()->ServiceChanged(service_type, false, service); |
| 236 } | 235 } |
| 237 | 236 |
| 238 } // namespace extensions | 237 } // namespace extensions |
| OLD | NEW |