OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/lazy_instance.h" | 5 #include "base/lazy_instance.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
13 #include "components/grpc_support/include/bidirectional_stream_c.h" | 14 #include "components/grpc_support/include/bidirectional_stream_c.h" |
14 #include "components/grpc_support/test/quic_test_server.h" | 15 #include "components/grpc_support/test/quic_test_server.h" |
15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
16 #include "net/cert/mock_cert_verifier.h" | 17 #include "net/cert/mock_cert_verifier.h" |
17 #include "net/dns/mapped_host_resolver.h" | 18 #include "net/dns/mapped_host_resolver.h" |
18 #include "net/dns/mock_host_resolver.h" | 19 #include "net/dns/mock_host_resolver.h" |
19 #include "net/http/http_server_properties_impl.h" | 20 #include "net/http/http_server_properties_impl.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 g_request_context_getter_.Get()->SetTestServerPort(port); | 125 g_request_context_getter_.Get()->SetTestServerPort(port); |
125 static stream_engine engine; | 126 static stream_engine engine; |
126 engine.obj = g_request_context_getter_.Get().get(); | 127 engine.obj = g_request_context_getter_.Get().get(); |
127 return &engine; | 128 return &engine; |
128 } | 129 } |
129 | 130 |
130 void StartTestStreamEngine(int port) {} | 131 void StartTestStreamEngine(int port) {} |
131 void ShutdownTestStreamEngine() {} | 132 void ShutdownTestStreamEngine() {} |
132 | 133 |
133 } // namespace grpc_support | 134 } // namespace grpc_support |
OLD | NEW |