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

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

Issue 2724953004: Test actual arguments in WebStateImplTest::ObserverTest. (Closed)
Patch Set: Rebased Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_UTIL_H_
6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_UTIL_H_
7
8 #include <memory>
9
10 #include "ios/web/public/favicon_url.h"
11 #include "ios/web/public/load_committed_details.h"
12 #include "url/gurl.h"
13
14 namespace web {
15
16 class NavigationContext;
17 class WebState;
18
19 // Arguments passed to |ProvisionalNavigationStarted|.
20 struct TestStartProvisionalNavigationInfo {
21 WebState* web_state;
22 GURL url;
23 };
24
25 // Arguments passed to |DidFinishNavigation|.
26 struct TestDidFinishNavigationInfo {
27 TestDidFinishNavigationInfo();
28 ~TestDidFinishNavigationInfo();
29 WebState* web_state;
30 std::unique_ptr<web::NavigationContext> context;
31 };
32
33 // Arguments passed to |NavigationItemCommitted|.
34 struct TestCommitNavigationInfo {
35 WebState* web_state;
36 LoadCommittedDetails load_details;
37 };
38
39 // Arguments passed to |PageLoaded|.
40 struct TestLoadPageInfo {
41 WebState* web_state;
42 bool success;
43 };
44
45 // Arguments passed to |InterstitialDismissed|.
46 struct TestDismissInterstitialInfo {
47 WebState* web_state;
48 };
49
50 // Arguments passed to |LoadProgressChanged|.
51 struct TestChangeLoadingProgressInfo {
52 WebState* web_state;
53 double progress;
54 };
55
56 // Arguments passed to |NavigationItemsPruned|.
57 struct TestNavigationItemsPrunedInfo {
58 WebState* web_state;
59 int count;
60 };
61
62 // Arguments passed to |NavigationItemChanged|.
63 struct TestNavigationItemChangedInfo {
64 WebState* web_state;
65 };
66
67 // Arguments passed to |TitleWasSet|.
68 struct TestTitleWasSetInfo {
69 WebState* web_state;
70 };
71
72 // Arguments passed to |DocumentSubmitted|.
73 struct TestSubmitDocumentInfo {
74 WebState* web_state;
75 std::string form_name;
76 bool user_initiated;
77 };
78
79 // Arguments passed to |FormActivityRegistered|.
80 struct TestFormActivityInfo {
81 TestFormActivityInfo();
82 ~TestFormActivityInfo();
83 WebState* web_state;
84 std::string form_name;
85 std::string field_name;
86 std::string type;
87 std::string value;
88 bool input_missing;
89 };
90
91 // Arguments passed to |FaviconUrlUpdated|.
92 struct TestUpdateFaviconUrlCandidatesInfo {
93 TestUpdateFaviconUrlCandidatesInfo();
94 ~TestUpdateFaviconUrlCandidatesInfo();
95 WebState* web_state;
96 std::vector<web::FaviconURL> candidates;
97 };
98
99 // Arguments passed to |RenderProcessGone|.
100 struct TestRenderProcessGoneInfo {
101 WebState* web_state;
102 };
103
104 // Arguments passed to |WebStateDestroyed|.
105 struct TestWebStateDestroyedInfo {
106 WebState* web_state;
107 };
108
109 // Arguments passed to |DidStartLoading|.
110 struct TestStartLoadingInfo {
111 WebState* web_state;
112 };
113
114 // Arguments passed to |DidStopLoading|.
115 struct TestStopLoadingInfo {
116 WebState* web_state;
117 };
118
119 } // namespace web
120
121 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698