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

Side by Side Diff: ios/web/net/clients/crw_js_injection_network_client_unittest.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/net/clients/crw_js_injection_network_client.h" 5 #import "ios/web/net/clients/crw_js_injection_network_client.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/mac/scoped_nsobject.h" 11 #import "base/mac/scoped_nsobject.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #import "ios/net/clients/crn_network_client_protocol.h" 14 #import "ios/net/clients/crn_network_client_protocol.h"
15 #import "ios/net/crn_http_url_response.h" 15 #import "ios/net/crn_http_url_response.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #import "third_party/ocmock/OCMock/OCMock.h" 18 #import "third_party/ocmock/OCMock/OCMock.h"
19 #import "third_party/ocmock/gtest_support.h" 19 #import "third_party/ocmock/gtest_support.h"
20 20
21 namespace { 21 namespace {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Load data one byte at a time. 279 // Load data one byte at a time.
280 for (NSUInteger i = 0; i < [test_data_ length]; i++) { 280 for (NSUInteger i = 0; i < [test_data_ length]; i++) {
281 [js_injection_client_ didLoadData: 281 [js_injection_client_ didLoadData:
282 [test_data_ subdataWithRange:NSMakeRange(i, 1u)]]; 282 [test_data_ subdataWithRange:NSMakeRange(i, 1u)]];
283 } 283 }
284 [js_injection_client_ didFinishLoading]; 284 [js_injection_client_ didFinishLoading];
285 285
286 EXPECT_EQ(1u, GetScriptTagCount()); 286 EXPECT_EQ(1u, GetScriptTagCount());
287 ExpectConsistentContentLength(); 287 ExpectConsistentContentLength();
288 } 288 }
OLDNEW
« no previous file with comments | « ios/web/net/clients/crw_js_injection_network_client_factory.mm ('k') | ios/web/net/clients/crw_redirect_network_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698