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

Unified Diff: chrome/browser/safe_browsing/malware_details_unittest.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix InstantNTP test. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/malware_details_unittest.cc
diff --git a/chrome/browser/safe_browsing/malware_details_unittest.cc b/chrome/browser/safe_browsing/malware_details_unittest.cc
index 37ada0cf918aff458f9bb3dcadec18715fda6213..3e8ee595b827ac39135f4d31fc8d7615ef3ba1eb 100644
--- a/chrome/browser/safe_browsing/malware_details_unittest.cc
+++ b/chrome/browser/safe_browsing/malware_details_unittest.cc
@@ -531,7 +531,6 @@ TEST_F(MalwareDetailsTest, HTTPCache) {
UnsafeResource resource;
InitResource(&resource, true, GURL(kMalwareURL));
- profile()->CreateRequestContext();
scoped_refptr<MalwareDetailsWrap> report = new MalwareDetailsWrap(
ui_manager_.get(), web_contents(), resource,
profile()->GetRequestContext());
@@ -594,7 +593,6 @@ TEST_F(MalwareDetailsTest, HTTPCache) {
expected.set_complete(true);
VerifyResults(actual, expected);
- profile()->ResetRequestContext();
}
// Tests the interaction with the HTTP cache (where the cache is empty).
@@ -605,7 +603,6 @@ TEST_F(MalwareDetailsTest, HTTPCacheNoEntries) {
UnsafeResource resource;
InitResource(&resource, true, GURL(kMalwareURL));
- profile()->CreateRequestContext();
scoped_refptr<MalwareDetailsWrap> report = new MalwareDetailsWrap(
ui_manager_.get(), web_contents(), resource,
profile()->GetRequestContext());
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/safe_browsing/safe_browsing_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698