| 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/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 | 120 |
| 121 stream_engine* GetTestStreamEngine(int port) { | 121 stream_engine* GetTestStreamEngine(int port) { |
| 122 CreateRequestContextGetterIfNecessary(); | 122 CreateRequestContextGetterIfNecessary(); |
| 123 g_request_context_getter_.Get()->SetTestServerPort(port); | 123 g_request_context_getter_.Get()->SetTestServerPort(port); |
| 124 static stream_engine engine; | 124 static stream_engine engine; |
| 125 engine.obj = g_request_context_getter_.Get().get(); | 125 engine.obj = g_request_context_getter_.Get().get(); |
| 126 return &engine; | 126 return &engine; |
| 127 } | 127 } |
| 128 | 128 |
| 129 void StartTestStreamEngine(int port) {} |
| 130 void ShutdownTestStreamEngine() {} |
| 131 |
| 129 } // namespace grpc_support | 132 } // namespace grpc_support |
| OLD | NEW |