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/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
12 #include "components/grpc_support/include/bidirectional_stream_c.h" | 13 #include "components/grpc_support/include/bidirectional_stream_c.h" |
13 #include "components/grpc_support/test/quic_test_server.h" | 14 #include "components/grpc_support/test/quic_test_server.h" |
14 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
15 #include "net/cert/mock_cert_verifier.h" | 16 #include "net/cert/mock_cert_verifier.h" |
16 #include "net/dns/mapped_host_resolver.h" | 17 #include "net/dns/mapped_host_resolver.h" |
17 #include "net/dns/mock_host_resolver.h" | 18 #include "net/dns/mock_host_resolver.h" |
18 #include "net/http/http_server_properties_impl.h" | 19 #include "net/http/http_server_properties_impl.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 g_request_context_getter_.Get()->SetTestServerPort(port); | 124 g_request_context_getter_.Get()->SetTestServerPort(port); |
124 static stream_engine engine; | 125 static stream_engine engine; |
125 engine.obj = g_request_context_getter_.Get().get(); | 126 engine.obj = g_request_context_getter_.Get().get(); |
126 return &engine; | 127 return &engine; |
127 } | 128 } |
128 | 129 |
129 void StartTestStreamEngine(int port) {} | 130 void StartTestStreamEngine(int port) {} |
130 void ShutdownTestStreamEngine() {} | 131 void ShutdownTestStreamEngine() {} |
131 | 132 |
132 } // namespace grpc_support | 133 } // namespace grpc_support |
OLD | NEW |