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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 10821019: Add support for mocking failed loads to WebURLLoaderMock. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/weburl_loader_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 return NULL; 480 return NULL;
481 } 481 }
482 482
483 void RegisterMockedURL(const WebKit::WebURL& url, 483 void RegisterMockedURL(const WebKit::WebURL& url,
484 const WebKit::WebURLResponse& response, 484 const WebKit::WebURLResponse& response,
485 const WebKit::WebString& file_path) { 485 const WebKit::WebString& file_path) {
486 test_environment->webkit_platform_support()->url_loader_factory()-> 486 test_environment->webkit_platform_support()->url_loader_factory()->
487 RegisterURL(url, response, file_path); 487 RegisterURL(url, response, file_path);
488 } 488 }
489 489
490 void RegisterMockedErrorURL(const WebKit::WebURL& url,
491 const WebKit::WebURLResponse& response,
492 const WebKit::WebURLError& error) {
493 test_environment->webkit_platform_support()->url_loader_factory()->
494 RegisterErrorURL(url, response, error);
495 }
496
490 void UnregisterMockedURL(const WebKit::WebURL& url) { 497 void UnregisterMockedURL(const WebKit::WebURL& url) {
491 test_environment->webkit_platform_support()->url_loader_factory()-> 498 test_environment->webkit_platform_support()->url_loader_factory()->
492 UnregisterURL(url); 499 UnregisterURL(url);
493 } 500 }
494 501
495 void UnregisterAllMockedURLs() { 502 void UnregisterAllMockedURLs() {
496 test_environment->webkit_platform_support()->url_loader_factory()-> 503 test_environment->webkit_platform_support()->url_loader_factory()->
497 UnregisterAllURLs(); 504 UnregisterAllURLs();
498 } 505 }
499 506
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 // Logging 832 // Logging
826 void EnableWebCoreLogChannels(const std::string& channels) { 833 void EnableWebCoreLogChannels(const std::string& channels) {
827 webkit_glue::EnableWebCoreLogChannels(channels); 834 webkit_glue::EnableWebCoreLogChannels(channels);
828 } 835 }
829 836
830 void SetGamepadData(const WebKit::WebGamepads& pads) { 837 void SetGamepadData(const WebKit::WebGamepads& pads) {
831 test_environment->webkit_platform_support()->setGamepadData(pads); 838 test_environment->webkit_platform_support()->setGamepadData(pads);
832 } 839 }
833 840
834 } // namespace webkit_support 841 } // namespace webkit_support
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/weburl_loader_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698