OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "ios/web/public/test/fakes/crw_test_web_state_observer.h" | 5 #import "ios/web/public/test/fakes/crw_test_web_state_observer.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #import "ios/web/public/web_state/navigation_context.h" | 8 #import "ios/web/public/web_state/navigation_context.h" |
9 #import "ios/web/web_state/navigation_context_impl.h" | 9 #import "ios/web/web_state/navigation_context_impl.h" |
10 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
| 13 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 14 #error "This file requires ARC support." |
| 15 #endif |
| 16 |
13 namespace web { | 17 namespace web { |
14 TestFormActivityInfo::TestFormActivityInfo() {} | 18 TestFormActivityInfo::TestFormActivityInfo() {} |
15 TestFormActivityInfo::~TestFormActivityInfo() = default; | 19 TestFormActivityInfo::~TestFormActivityInfo() = default; |
16 TestUpdateFaviconUrlCandidatesInfo::TestUpdateFaviconUrlCandidatesInfo() {} | 20 TestUpdateFaviconUrlCandidatesInfo::TestUpdateFaviconUrlCandidatesInfo() {} |
17 TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() = | 21 TestUpdateFaviconUrlCandidatesInfo::~TestUpdateFaviconUrlCandidatesInfo() = |
18 default; | 22 default; |
19 } | 23 } |
20 | 24 |
21 @implementation CRWTestWebStateObserver { | 25 @implementation CRWTestWebStateObserver { |
22 // Arguments passed to |webState:didStartNavigation:|. | 26 // Arguments passed to |webState:didStartNavigation:|. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>(); | 249 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>(); |
246 _stopLoadingInfo->web_state = webState; | 250 _stopLoadingInfo->web_state = webState; |
247 } | 251 } |
248 | 252 |
249 - (void)webStateDidStartLoading:(web::WebState*)webState { | 253 - (void)webStateDidStartLoading:(web::WebState*)webState { |
250 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>(); | 254 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>(); |
251 _startLoadingInfo->web_state = webState; | 255 _startLoadingInfo->web_state = webState; |
252 } | 256 } |
253 | 257 |
254 @end | 258 @end |
OLD | NEW |