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

Side by Side Diff: ios/web/public/test/fakes/test_web_state_delegate.h

Issue 2922973004: [ObjC ARC] Converts ios/web/public/test/fakes:fakes to ARC. (Closed)
Patch Set: scoped_nsobject in .h Created 3 years, 6 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 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 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_
6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_ 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 12
13 #include "base/mac/scoped_nsobject.h"
14 #import "ios/web/public/web_state/web_state_delegate.h" 13 #import "ios/web/public/web_state/web_state_delegate.h"
15 #import "ios/web/public/test/fakes/test_java_script_dialog_presenter.h" 14 #import "ios/web/public/test/fakes/test_java_script_dialog_presenter.h"
16 15
17 namespace web { 16 namespace web {
18 17
19 // Encapsulates parameters passed to CreateNewWebState. 18 // Encapsulates parameters passed to CreateNewWebState.
20 struct TestCreateNewWebStateRequest { 19 struct TestCreateNewWebStateRequest {
21 WebState* web_state = nullptr; 20 WebState* web_state = nullptr;
22 GURL url; 21 GURL url;
23 GURL opener_url; 22 GURL opener_url;
(...skipping 22 matching lines...) Expand all
46 WebState* web_state = nullptr; 45 WebState* web_state = nullptr;
47 base::Callback<void(bool)> callback; 46 base::Callback<void(bool)> callback;
48 }; 47 };
49 48
50 // Encapsulates parameters passed to OnAuthRequired. 49 // Encapsulates parameters passed to OnAuthRequired.
51 struct TestAuthenticationRequest { 50 struct TestAuthenticationRequest {
52 TestAuthenticationRequest(); 51 TestAuthenticationRequest();
53 TestAuthenticationRequest(const TestAuthenticationRequest&); 52 TestAuthenticationRequest(const TestAuthenticationRequest&);
54 ~TestAuthenticationRequest(); 53 ~TestAuthenticationRequest();
55 WebState* web_state = nullptr; 54 WebState* web_state = nullptr;
56 base::scoped_nsobject<NSURLProtectionSpace> protection_space; 55 NSURLProtectionSpace* protection_space;
57 base::scoped_nsobject<NSURLCredential> credential; 56 NSURLCredential* credential;
58 WebStateDelegate::AuthCallback auth_callback; 57 WebStateDelegate::AuthCallback auth_callback;
59 }; 58 };
60 59
61 // Encapsulates information about popup. 60 // Encapsulates information about popup.
62 struct TestPopup { 61 struct TestPopup {
63 TestPopup(const GURL& url, const GURL& opener_url) 62 TestPopup(const GURL& url, const GURL& opener_url)
64 : url(url), opener_url(opener_url) {} 63 : url(url), opener_url(opener_url) {}
65 GURL url; 64 GURL url;
66 GURL opener_url; 65 GURL opener_url;
67 }; 66 };
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::unique_ptr<TestOpenURLRequest> last_open_url_request_; 160 std::unique_ptr<TestOpenURLRequest> last_open_url_request_;
162 std::unique_ptr<TestRepostFormRequest> last_repost_form_request_; 161 std::unique_ptr<TestRepostFormRequest> last_repost_form_request_;
163 bool get_java_script_dialog_presenter_called_ = false; 162 bool get_java_script_dialog_presenter_called_ = false;
164 TestJavaScriptDialogPresenter java_script_dialog_presenter_; 163 TestJavaScriptDialogPresenter java_script_dialog_presenter_;
165 std::unique_ptr<TestAuthenticationRequest> last_authentication_request_; 164 std::unique_ptr<TestAuthenticationRequest> last_authentication_request_;
166 }; 165 };
167 166
168 } // namespace web 167 } // namespace web
169 168
170 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_ 169 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_state.mm ('k') | ios/web/public/test/fakes/test_web_state_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698