summaryrefslogtreecommitdiffstats
path: root/webkit/support/test_webkit_client.h
diff options
context:
space:
mode:
authortkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 06:08:27 +0000
committertkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 06:08:27 +0000
commit3d56c24f0ab43d2b85986c4d6c17543b9a5cfcf2 (patch)
tree20be103316be4281a3b1c996f8779a75d3a9ad86 /webkit/support/test_webkit_client.h
parentf37ec09b147ed275a671d07bdda7b43064479a89 (diff)
downloadchromium_src-3d56c24f0ab43d2b85986c4d6c17543b9a5cfcf2.zip
chromium_src-3d56c24f0ab43d2b85986c4d6c17543b9a5cfcf2.tar.gz
chromium_src-3d56c24f0ab43d2b85986c4d6c17543b9a5cfcf2.tar.bz2
* Implement WebPluginPageDelete::GetCookieJar()
* Do not use WebURLLoaderMock for DRT Unfortunately, r50382 (adding WebURLLoader mock) broke some plugin tests. - WebPluginImpl::InitiateHTTPRequest() stores a mocked WebURLLoader to clients_. - WebURLLoaderMock delegates some operations to its internal WebURLLoader. - WebPluginImpl::GetClientInfoFromLoader(WebURLLoader*) compares the specified pointer (non-mocked) to stored loader pointers (mocked). TEST=Covered by LayoutTests BUG=none Review URL: http://codereview.chromium.org/2834031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/test_webkit_client.h')
-rw-r--r--webkit/support/test_webkit_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/support/test_webkit_client.h b/webkit/support/test_webkit_client.h
index c1415ab..6a51ec4 100644
--- a/webkit/support/test_webkit_client.h
+++ b/webkit/support/test_webkit_client.h
@@ -17,7 +17,7 @@
// An implementation of WebKitClient for tests.
class TestWebKitClient : public webkit_glue::WebKitClientImpl {
public:
- explicit TestWebKitClient();
+ explicit TestWebKitClient(bool unit_test_mode);
virtual ~TestWebKitClient();
virtual WebKit::WebMimeRegistry* mimeRegistry();
@@ -71,6 +71,7 @@ class TestWebKitClient : public webkit_glue::WebKitClientImpl {
SimpleDatabaseSystem database_system_;
SimpleWebCookieJarImpl cookie_jar_;
WebURLLoaderMockFactory url_loader_factory_;
+ bool unit_test_mode_;
#if defined(OS_WIN)
WebKit::WebThemeEngine* active_theme_engine_;