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 "base/basictypes.h" | |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
9 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
10 #include "base/location.h" | 9 #include "base/location.h" |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
13 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
15 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
16 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
17 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 326 |
328 last_config_ = bad_config; | 327 last_config_ = bad_config; |
329 // No change, so no update. | 328 // No change, so no update. |
330 service_->InvalidateConfig(); | 329 service_->InvalidateConfig(); |
331 service_->OnConfigRead(config2); | 330 service_->OnConfigRead(config2); |
332 EXPECT_TRUE(last_config_.Equals(bad_config)); | 331 EXPECT_TRUE(last_config_.Equals(bad_config)); |
333 } | 332 } |
334 | 333 |
335 } // namespace net | 334 } // namespace net |
336 | 335 |
OLD | NEW |