summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-07 13:21:08 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-07 13:21:08 +0000
commit415a01c0101f4323f2288f20a842dac54d1ac242 (patch)
tree915adcee4585977d3463cd3e9de6ffaadb51225f /chrome/browser/extensions
parentb28dafd1176f7afa9c99d939112f2069d93e7c1f (diff)
downloadchromium_src-415a01c0101f4323f2288f20a842dac54d1ac242.zip
chromium_src-415a01c0101f4323f2288f20a842dac54d1ac242.tar.gz
chromium_src-415a01c0101f4323f2288f20a842dac54d1ac242.tar.bz2
Move code duplicated in two tests up into the TestingProfile.
Move TestURLRequestContextGetter and friends from CookieTreeModelTest and CookiesWindowControllerTest into TestingProfile. In the TestingProfile, return a valid CookieMonster and URLRequstContextGetter. BUG=None TEST=Covered by unit tests Review URL: http://codereview.chromium.org/525072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/user_script_listener_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/user_script_listener_unittest.cc b/chrome/browser/extensions/user_script_listener_unittest.cc
index 82a8880..e9129e8 100644
--- a/chrome/browser/extensions/user_script_listener_unittest.cc
+++ b/chrome/browser/extensions/user_script_listener_unittest.cc
@@ -211,6 +211,10 @@ class ExtensionTestingProfile : public TestingProfile {
service_ = NULL;
}
+ // Duplicate old functionality from TestingProfile. The ContextGetter
+ // provided by TestingProfile only has support for the CookieMonster.
+ virtual URLRequestContextGetter* GetRequestContext() { return NULL; }
+
virtual ExtensionsService* GetExtensionsService() {
return service_.get();
}