| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #import "ios/crnet/CrNet.h" | 8 #import <CrNet/CrNet.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Core/GCDWebServer.h" | 13 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Core/GCDWebServer.h" |
| 14 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Responses/GCDWebServerDat
aResponse.h" | 14 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Responses/GCDWebServerDat
aResponse.h" |
| 15 #include "net/base/mac/url_conversions.h" | 15 #include "net/base/mac/url_conversions.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "testing/gtest_mac.h" | 17 #include "testing/gtest_mac.h" |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 StartDataTaskAndWaitForCompletion(task); | 237 StartDataTaskAndWaitForCompletion(task); |
| 238 EXPECT_EQ(nil, [delegate_ error]); | 238 EXPECT_EQ(nil, [delegate_ error]); |
| 239 EXPECT_TRUE([delegate_ receivedBytes]); | 239 EXPECT_TRUE([delegate_ receivedBytes]); |
| 240 } | 240 } |
| 241 | 241 |
| 242 // TODO(ellyjones): There needs to be a test that enabling SDCH works, but | 242 // TODO(ellyjones): There needs to be a test that enabling SDCH works, but |
| 243 // because CrNet is static and 'uninstall' only disables it, there is no way to | 243 // because CrNet is static and 'uninstall' only disables it, there is no way to |
| 244 // have an individual test enable or disable SDCH. | 244 // have an individual test enable or disable SDCH. |
| 245 // Probably there is a way to get gtest tests to run in a separate process, but | 245 // Probably there is a way to get gtest tests to run in a separate process, but |
| 246 // I'm not sure what it is. | 246 // I'm not sure what it is. |
| OLD | NEW |