| Index: components/cronet/ios/test/cronet_http_test.mm
|
| diff --git a/components/cronet/ios/test/cronet_http_test.mm b/components/cronet/ios/test/cronet_http_test.mm
|
| index e1642feeaf9cbb5a6ad0cff8fdde7d7e7a03d6b1..2428bacbf097c0c0edb3c486f3ea597e3089d06d 100644
|
| --- a/components/cronet/ios/test/cronet_http_test.mm
|
| +++ b/components/cronet/ios/test/cronet_http_test.mm
|
| @@ -163,6 +163,17 @@ class HttpTest : public ::testing::Test {
|
| base::scoped_nsobject<TestDelegate> delegate_;
|
| };
|
|
|
| +TEST_F(HttpTest, CreateFile) {
|
| + bool ssl_file_created = [[NSFileManager defaultManager]
|
| + fileExistsAtPath:[Cronet getNetLogPathForFile:@"SSLKEYLOGFILE"]];
|
| +
|
| + [[NSFileManager defaultManager]
|
| + removeItemAtPath:[Cronet getNetLogPathForFile:@"SSLKEYLOGFILE"]
|
| + error:nil];
|
| +
|
| + EXPECT_TRUE(ssl_file_created);
|
| +}
|
| +
|
| TEST_F(HttpTest, NSURLSessionReceivesData) {
|
| NSURL* url = net::NSURLWithGURL(GURL(grpc_support::kTestServerUrl));
|
| __block BOOL block_used = NO;
|
|
|