Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: ios/crnet/test/crnet_http_tests.mm

Issue 2200323003: [Cronet] Add BUILD.gn for legacy ios/CrNet project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix conditional include. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/crnet/test/BUILD.gn ('k') | ios/net/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "CrNet.h" 8 #import "ios/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 #include "net/base/mac/url_conversions.h" 14 #include "net/base/mac/url_conversions.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/gtest_mac.h" 16 #include "testing/gtest_mac.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 StartDataTaskAndWaitForCompletion(task); 220 StartDataTaskAndWaitForCompletion(task);
221 EXPECT_EQ(nil, [delegate_ error]); 221 EXPECT_EQ(nil, [delegate_ error]);
222 EXPECT_TRUE([delegate_ receivedBytes]); 222 EXPECT_TRUE([delegate_ receivedBytes]);
223 } 223 }
224 224
225 // TODO(ellyjones): There needs to be a test that enabling SDCH works, but 225 // TODO(ellyjones): There needs to be a test that enabling SDCH works, but
226 // because CrNet is static and 'uninstall' only disables it, there is no way to 226 // because CrNet is static and 'uninstall' only disables it, there is no way to
227 // have an individual test enable or disable SDCH. 227 // have an individual test enable or disable SDCH.
228 // Probably there is a way to get gtest tests to run in a separate process, but 228 // Probably there is a way to get gtest tests to run in a separate process, but
229 // I'm not sure what it is. 229 // I'm not sure what it is.
OLDNEW
« no previous file with comments | « ios/crnet/test/BUILD.gn ('k') | ios/net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698