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

Side by Side Diff: content/shell/renderer/test_runner/web_test_proxy.h

Issue 784873004: Push API: delete MockWebPushClient [switchover 2/6] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class WebFileChooserCompletion; 45 class WebFileChooserCompletion;
46 class WebFrame; 46 class WebFrame;
47 class WebImage; 47 class WebImage;
48 class WebLocalFrame; 48 class WebLocalFrame;
49 class WebMIDIAccessor; 49 class WebMIDIAccessor;
50 class WebMIDIAccessorClient; 50 class WebMIDIAccessorClient;
51 class WebMIDIClient; 51 class WebMIDIClient;
52 class WebMIDIClientMock; 52 class WebMIDIClientMock;
53 class WebNode; 53 class WebNode;
54 class WebPlugin; 54 class WebPlugin;
55 class WebPushClient;
56 class WebRange; 55 class WebRange;
57 class WebSerializedScriptValue; 56 class WebSerializedScriptValue;
58 class WebSpeechRecognizer; 57 class WebSpeechRecognizer;
59 class WebSpellCheckClient; 58 class WebSpellCheckClient;
60 class WebString; 59 class WebString;
61 class WebURL; 60 class WebURL;
62 class WebURLResponse; 61 class WebURLResponse;
63 class WebUserMediaClient; 62 class WebUserMediaClient;
64 class WebView; 63 class WebView;
65 class WebWidget; 64 class WebWidget;
66 struct WebColorSuggestion; 65 struct WebColorSuggestion;
67 struct WebConsoleMessage; 66 struct WebConsoleMessage;
68 struct WebContextMenuData; 67 struct WebContextMenuData;
69 struct WebFileChooserParams; 68 struct WebFileChooserParams;
70 struct WebPluginParams; 69 struct WebPluginParams;
71 struct WebPoint; 70 struct WebPoint;
72 struct WebSize; 71 struct WebSize;
73 struct WebWindowFeatures; 72 struct WebWindowFeatures;
74 typedef unsigned WebColor; 73 typedef unsigned WebColor;
75 } 74 }
76 75
77 namespace content { 76 namespace content {
78 77
79 class MockCredentialManagerClient; 78 class MockCredentialManagerClient;
80 class MockScreenOrientationClient; 79 class MockScreenOrientationClient;
81 class MockWebPushClient;
82 class MockWebSpeechRecognizer; 80 class MockWebSpeechRecognizer;
83 class MockWebUserMediaClient; 81 class MockWebUserMediaClient;
84 class RenderFrame; 82 class RenderFrame;
85 class SpellCheckClient; 83 class SpellCheckClient;
86 class TestInterfaces; 84 class TestInterfaces;
87 class WebTestDelegate; 85 class WebTestDelegate;
88 class WebTestInterfaces; 86 class WebTestInterfaces;
89 87
90 // WebTestProxyBase is the "brain" of WebTestProxy in the sense that 88 // WebTestProxyBase is the "brain" of WebTestProxy in the sense that
91 // WebTestProxy does the bridge between RenderViewImpl and WebTestProxyBase and 89 // WebTestProxy does the bridge between RenderViewImpl and WebTestProxyBase and
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 MockCredentialManagerClient* GetCredentialManagerClientMock(); 133 MockCredentialManagerClient* GetCredentialManagerClientMock();
136 134
137 WebTaskList* mutable_task_list() { return &task_list_; } 135 WebTaskList* mutable_task_list() { return &task_list_; }
138 136
139 blink::WebView* GetWebView() const; 137 blink::WebView* GetWebView() const;
140 138
141 void PostSpellCheckEvent(const blink::WebString& event_name); 139 void PostSpellCheckEvent(const blink::WebString& event_name);
142 140
143 void SetAcceptLanguages(const std::string& accept_languages); 141 void SetAcceptLanguages(const std::string& accept_languages);
144 142
145 MockWebPushClient* GetPushClientMock();
146
147 protected: 143 protected:
148 WebTestProxyBase(); 144 WebTestProxyBase();
149 ~WebTestProxyBase(); 145 ~WebTestProxyBase();
150 146
151 void ScheduleAnimation(); 147 void ScheduleAnimation();
152 void PostAccessibilityEvent(const blink::WebAXObject&, blink::WebAXEvent); 148 void PostAccessibilityEvent(const blink::WebAXObject&, blink::WebAXEvent);
153 void StartDragging(blink::WebLocalFrame* frame, 149 void StartDragging(blink::WebLocalFrame* frame,
154 const blink::WebDragData& data, 150 const blink::WebDragData& data,
155 blink::WebDragOperationsMask mask, 151 blink::WebDragOperationsMask mask,
156 const blink::WebImage& image, 152 const blink::WebImage& image,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void DidFinishResourceLoad(blink::WebLocalFrame* frame, unsigned identifier); 223 void DidFinishResourceLoad(blink::WebLocalFrame* frame, unsigned identifier);
228 blink::WebNavigationPolicy DecidePolicyForNavigation( 224 blink::WebNavigationPolicy DecidePolicyForNavigation(
229 const blink::WebFrameClient::NavigationPolicyInfo& info); 225 const blink::WebFrameClient::NavigationPolicyInfo& info);
230 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* source_frame, 226 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* source_frame,
231 blink::WebFrame* target_frame, 227 blink::WebFrame* target_frame,
232 blink::WebSecurityOrigin target, 228 blink::WebSecurityOrigin target,
233 blink::WebDOMMessageEvent event); 229 blink::WebDOMMessageEvent event);
234 void ResetInputMethod(); 230 void ResetInputMethod();
235 231
236 blink::WebString acceptLanguages(); 232 blink::WebString acceptLanguages();
237 blink::WebPushClient* GetWebPushClient();
238 233
239 private: 234 private:
240 template <class, typename, typename> 235 template <class, typename, typename>
241 friend class WebFrameTestProxy; 236 friend class WebFrameTestProxy;
242 237
243 enum CheckDoneReason { 238 enum CheckDoneReason {
244 LoadFinished, 239 LoadFinished,
245 MainResourceLoadFailed, 240 MainResourceLoadFailed,
246 ResourceLoadCompleted 241 ResourceLoadCompleted
247 }; 242 };
(...skipping 16 matching lines...) Expand all
264 259
265 bool animate_scheduled_; 260 bool animate_scheduled_;
266 std::map<unsigned, std::string> resource_identifier_map_; 261 std::map<unsigned, std::string> resource_identifier_map_;
267 262
268 bool log_console_output_; 263 bool log_console_output_;
269 int chooser_count_; 264 int chooser_count_;
270 265
271 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; 266 scoped_ptr<MockCredentialManagerClient> credential_manager_client_;
272 scoped_ptr<blink::WebMIDIClientMock> midi_client_; 267 scoped_ptr<blink::WebMIDIClientMock> midi_client_;
273 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; 268 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_;
274 scoped_ptr<MockWebPushClient> push_client_;
275 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_; 269 scoped_ptr<MockScreenOrientationClient> screen_orientation_client_;
276 270
277 std::string accept_languages_; 271 std::string accept_languages_;
278 272
279 private: 273 private:
280 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase); 274 DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase);
281 }; 275 };
282 276
283 // WebTestProxy is used during LayoutTests and always instantiated, at time of 277 // WebTestProxy is used during LayoutTests and always instantiated, at time of
284 // writing with Base=RenderViewImpl. It does not directly inherit from it for 278 // writing with Base=RenderViewImpl. It does not directly inherit from it for
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 return WebTestProxyBase::acceptLanguages(); 392 return WebTestProxyBase::acceptLanguages();
399 } 393 }
400 394
401 private: 395 private:
402 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 396 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
403 }; 397 };
404 398
405 } // namespace content 399 } // namespace content
406 400
407 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 401 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/web_frame_test_proxy.h ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698