| 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_config_service.h" | 5 #include "net/dns/dns_config_service.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 EXPECT_TRUE(last_config_.Equals(DnsConfig())); | 237 EXPECT_TRUE(last_config_.Equals(DnsConfig())); |
| 238 | 238 |
| 239 last_config_ = bad_config; | 239 last_config_ = bad_config; |
| 240 // No change, so no update. | 240 // No change, so no update. |
| 241 service_->InvalidateConfig(); | 241 service_->InvalidateConfig(); |
| 242 service_->OnConfigRead(config2); | 242 service_->OnConfigRead(config2); |
| 243 EXPECT_TRUE(last_config_.Equals(bad_config)); | 243 EXPECT_TRUE(last_config_.Equals(bad_config)); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace net | 246 } // namespace net |
| 247 | |
| OLD | NEW |