Chromium Code Reviews| Index: components/cronet/ios/test/get_stream_engine.mm |
| diff --git a/components/cronet/ios/test/get_stream_engine.mm b/components/cronet/ios/test/get_stream_engine.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ee958756d7ebd2d09b6021c1e743673f81dd648d |
| --- /dev/null |
| +++ b/components/cronet/ios/test/get_stream_engine.mm |
| @@ -0,0 +1,18 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import <Cronet/Cronet.h> |
| +#import <Foundation/Foundation.h> |
| + |
| +#include "components/cronet/ios/test/start_cronet.h" |
| +#include "components/grpc_support/test/get_stream_engine.h" |
| + |
| +namespace grpc_support { |
| + |
| +stream_engine* GetTestStreamEngine() { |
| + cronet::StartCronetIfNecessary(); |
| + return [Cronet getGlobalEngine]; |
| +} |
| + |
| +} // namespcae grpc_support |
|
mef
2016/10/26 22:19:45
nit: namespace (sp).
|