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

Side by Side Diff: ios/web/net/web_http_protocol_handler_delegate_unittest.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: 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/web_http_protocol_handler_delegate.h" 5 #import "ios/web/net/web_http_protocol_handler_delegate.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/mac/scoped_nsobject.h" 11 #import "base/mac/scoped_nsobject.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "ios/web/public/test/scoped_testing_web_client.h" 16 #include "ios/web/public/test/scoped_testing_web_client.h"
17 #include "ios/web/public/web_client.h" 17 #import "ios/web/public/web_client.h"
18 #include "net/url_request/url_request_test_util.h" 18 #include "net/url_request/url_request_test_util.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #import "third_party/ocmock/OCMock/OCMock.h" 20 #import "third_party/ocmock/OCMock/OCMock.h"
21 21
22 namespace web { 22 namespace web {
23 23
24 namespace { 24 namespace {
25 25
26 // Test application specific scheme. 26 // Test application specific scheme.
27 const char kAppSpecificScheme[] = "appspecific"; 27 const char kAppSpecificScheme[] = "appspecific";
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Empty dictionary so User-Agent check fails. 152 // Empty dictionary so User-Agent check fails.
153 NSDictionary* headers = @{}; 153 NSDictionary* headers = @{};
154 NSURL* url = [NSURL URLWithString:@"file:///steal/this/file.html"]; 154 NSURL* url = [NSURL URLWithString:@"file:///steal/this/file.html"];
155 id mock_request = [OCMockObject mockForClass:[NSURLRequest class]]; 155 id mock_request = [OCMockObject mockForClass:[NSURLRequest class]];
156 [[[mock_request stub] andReturn:headers] allHTTPHeaderFields]; 156 [[[mock_request stub] andReturn:headers] allHTTPHeaderFields];
157 [[[mock_request stub] andReturn:url] URL]; 157 [[[mock_request stub] andReturn:url] URL];
158 EXPECT_FALSE(IsStaticFileRequest(mock_request)); 158 EXPECT_FALSE(IsStaticFileRequest(mock_request));
159 } 159 }
160 160
161 } // namespace web 161 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698