| Index: chrome/browser/google_url_tracker_unittest.cc
|
| diff --git a/chrome/browser/google_url_tracker_unittest.cc b/chrome/browser/google_url_tracker_unittest.cc
|
| index 428a3e335f6b76e28083e3a3a4852236adc5b92c..f73655f87c24d3aabc86f60ca2e8620bf898fd39 100644
|
| --- a/chrome/browser/google_url_tracker_unittest.cc
|
| +++ b/chrome/browser/google_url_tracker_unittest.cc
|
| @@ -70,13 +70,14 @@ class TestInfoBarDelegateFactory
|
| class GoogleURLTrackerTest : public testing::Test {
|
| protected:
|
| GoogleURLTrackerTest()
|
| - : original_default_request_context_(NULL) {
|
| + : message_loop_(MessageLoop::TYPE_IO),
|
| + io_thread_(ChromeThread::IO, &message_loop_),
|
| + original_default_request_context_(NULL) {
|
| }
|
|
|
| void SetUp() {
|
| original_default_request_context_ = Profile::GetDefaultRequestContext();
|
| Profile::set_default_request_context(NULL);
|
| - message_loop_ = new MessageLoop(MessageLoop::TYPE_IO);
|
| network_change_notifier_.reset(net::NetworkChangeNotifier::CreateMock());
|
| testing_profile_.reset(new TestingProfile);
|
| TestingBrowserProcess* testing_browser_process =
|
| @@ -99,7 +100,6 @@ class GoogleURLTrackerTest : public testing::Test {
|
| testing_browser_process->SetPrefService(NULL);
|
| testing_profile_.reset();
|
| network_change_notifier_.reset();
|
| - delete message_loop_;
|
| Profile::set_default_request_context(original_default_request_context_);
|
| }
|
|
|
| @@ -214,7 +214,8 @@ class GoogleURLTrackerTest : public testing::Test {
|
| }
|
|
|
| private:
|
| - MessageLoop* message_loop_;
|
| + MessageLoop message_loop_;
|
| + ChromeThread io_thread_;
|
| scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
|
| scoped_ptr<TestingProfile> testing_profile_;
|
|
|
|
|