| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mojo_host_resolver_impl.h" | 5 #include "net/dns/mojo_host_resolver_impl.h" | 
| 6 | 6 | 
| 7 #include <memory> | 7 #include <memory> | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <utility> | 9 #include <utility> | 
| 10 | 10 | 
|  | 11 #include "base/memory/ptr_util.h" | 
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" | 
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" | 
| 13 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" | 
| 14 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" | 
| 15 #include "net/base/address_list.h" | 16 #include "net/base/address_list.h" | 
| 16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" | 
| 17 #include "net/dns/mock_host_resolver.h" | 18 #include "net/dns/mock_host_resolver.h" | 
| 18 #include "net/test/gtest_util.h" | 19 #include "net/test/gtest_util.h" | 
| 19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" | 
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" | 
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 270   WaitForRequests(1); | 271   WaitForRequests(1); | 
| 271 | 272 | 
| 272   client.reset(); | 273   client.reset(); | 
| 273   base::RunLoop().RunUntilIdle(); | 274   base::RunLoop().RunUntilIdle(); | 
| 274 | 275 | 
| 275   mock_host_resolver_.ResolveAllPending(); | 276   mock_host_resolver_.ResolveAllPending(); | 
| 276   base::RunLoop().RunUntilIdle(); | 277   base::RunLoop().RunUntilIdle(); | 
| 277 } | 278 } | 
| 278 | 279 | 
| 279 }  // namespace net | 280 }  // namespace net | 
| OLD | NEW | 
|---|