Commit 8c3b86ea authored by achaulk@chromium.org's avatar achaulk@chromium.org

Make valgrind happy

BUG=359299
TEST=valgrind unittests
TBR=zork@chromium.org

Review URL: https://codereview.chromium.org/273623003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269587 0039d316-1c4b-4281-b951-d872f2087c98
parent 1554a9c2
...@@ -43,9 +43,10 @@ class FeedbackUploaderTest : public testing::Test { ...@@ -43,9 +43,10 @@ class FeedbackUploaderTest : public testing::Test {
FeedbackUploaderTest() FeedbackUploaderTest()
: ui_thread_(content::BrowserThread::UI, &message_loop_), : ui_thread_(content::BrowserThread::UI, &message_loop_),
context_(new content::TestBrowserContext()), context_(new content::TestBrowserContext()),
prefs_(new TestingPrefServiceSimple()),
dispatched_reports_count_(0), dispatched_reports_count_(0),
expected_reports_(0) { expected_reports_(0) {
user_prefs::UserPrefs::Set(context_.get(), new TestingPrefServiceSimple()); user_prefs::UserPrefs::Set(context_.get(), prefs_.get());
FeedbackUploaderFactory::GetInstance()->SetTestingFactory( FeedbackUploaderFactory::GetInstance()->SetTestingFactory(
context_.get(), &CreateFeedbackUploaderService); context_.get(), &CreateFeedbackUploaderService);
...@@ -102,6 +103,7 @@ class FeedbackUploaderTest : public testing::Test { ...@@ -102,6 +103,7 @@ class FeedbackUploaderTest : public testing::Test {
scoped_ptr<base::RunLoop> run_loop_; scoped_ptr<base::RunLoop> run_loop_;
content::TestBrowserThread ui_thread_; content::TestBrowserThread ui_thread_;
scoped_ptr<content::TestBrowserContext> context_; scoped_ptr<content::TestBrowserContext> context_;
scoped_ptr<PrefService> prefs_;
FeedbackUploader* uploader_; FeedbackUploader* uploader_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment