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

Unified Diff: components/feedback/feedback_uploader_unittest.cc

Issue 273623003: Make valgrind happy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « components/feedback/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/feedback_uploader_unittest.cc
diff --git a/components/feedback/feedback_uploader_unittest.cc b/components/feedback/feedback_uploader_unittest.cc
index 6d3a5e526781a23d75c61e2e0237e6c2a1564730..1dfa390c04a3b96fe85546d228ebc0f493e41c46 100644
--- a/components/feedback/feedback_uploader_unittest.cc
+++ b/components/feedback/feedback_uploader_unittest.cc
@@ -43,9 +43,10 @@ class FeedbackUploaderTest : public testing::Test {
FeedbackUploaderTest()
: ui_thread_(content::BrowserThread::UI, &message_loop_),
context_(new content::TestBrowserContext()),
+ prefs_(new TestingPrefServiceSimple()),
dispatched_reports_count_(0),
expected_reports_(0) {
- user_prefs::UserPrefs::Set(context_.get(), new TestingPrefServiceSimple());
+ user_prefs::UserPrefs::Set(context_.get(), prefs_.get());
FeedbackUploaderFactory::GetInstance()->SetTestingFactory(
context_.get(), &CreateFeedbackUploaderService);
@@ -102,6 +103,7 @@ class FeedbackUploaderTest : public testing::Test {
scoped_ptr<base::RunLoop> run_loop_;
content::TestBrowserThread ui_thread_;
scoped_ptr<content::TestBrowserContext> context_;
+ scoped_ptr<PrefService> prefs_;
FeedbackUploader* uploader_;
« no previous file with comments | « components/feedback/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698