diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 23:00:40 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 23:00:40 +0000 |
commit | e2d745a40960443829db963121e972b4ede877a0 (patch) | |
tree | 2015e7e140878ef61af19a5adb1e7d9d4b93b98d /chrome | |
parent | b647cf88f396b6d60aaa7f2206d37b3a9a2e4a50 (diff) | |
download | chromium_src-e2d745a40960443829db963121e972b4ede877a0.zip chromium_src-e2d745a40960443829db963121e972b4ede877a0.tar.gz chromium_src-e2d745a40960443829db963121e972b4ede877a0.tar.bz2 |
Add some tests to CookieMonster for overwriting persistent cookies, and checking that the PersistentCookieStore interface is exercised correctly.
Review URL: http://codereview.chromium.org/600040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38694 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 6 | ||||
-rw-r--r-- | chrome/browser/sync/glue/http_bridge.cc | 2 | ||||
-rw-r--r-- | chrome/test/testing_profile.cc | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index 0fe660b..e206121 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -167,7 +167,7 @@ ChromeURLRequestContext* FactoryForOriginal::Create() { if (record_mode || playback_mode) { // Don't use existing cookies and use an in-memory store. - context->set_cookie_store(new net::CookieMonster()); + context->set_cookie_store(new net::CookieMonster(NULL)); cache->set_mode( record_mode ? net::HttpCache::RECORD : net::HttpCache::PLAYBACK); } @@ -264,7 +264,7 @@ ChromeURLRequestContext* FactoryForOffTheRecord::Create() { new net::HttpCache(io_thread()->globals()->network_change_notifier.get(), context->host_resolver(), context->proxy_service(), context->ssl_config_service(), 0); - context->set_cookie_store(new net::CookieMonster); + context->set_cookie_store(new net::CookieMonster(NULL)); context->set_cookie_policy( new ChromeCookiePolicy(host_content_settings_map_)); context->set_http_transaction_factory(cache); @@ -298,7 +298,7 @@ ChromeURLRequestContext* FactoryForOffTheRecordExtensions::Create() { ChromeURLRequestContext* context = new ChromeURLRequestContext; ApplyProfileParametersToContext(context); - net::CookieMonster* cookie_monster = new net::CookieMonster; + net::CookieMonster* cookie_monster = new net::CookieMonster(NULL); // Enable cookies for extension URLs only. const char* schemes[] = {chrome::kExtensionScheme}; diff --git a/chrome/browser/sync/glue/http_bridge.cc b/chrome/browser/sync/glue/http_bridge.cc index 95d95ac..bf54eeb 100644 --- a/chrome/browser/sync/glue/http_bridge.cc +++ b/chrome/browser/sync/glue/http_bridge.cc @@ -65,7 +65,7 @@ HttpBridge::RequestContext::RequestContext(URLRequestContext* baseline_context) : baseline_context_(baseline_context) { // Create empty, in-memory cookie store. - cookie_store_ = new net::CookieMonster(); + cookie_store_ = new net::CookieMonster(NULL); // We don't use a cache for bridged loads, but we do want to share proxy info. host_resolver_ = baseline_context->host_resolver(); diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 94ddf97..5cae4f7 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -86,7 +86,7 @@ class BookmarkLoadObserver : public BookmarkModelObserver { class TestURLRequestContext : public URLRequestContext { public: TestURLRequestContext() { - cookie_store_ = new net::CookieMonster(); + cookie_store_ = new net::CookieMonster(NULL); } }; |