summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_download_unittest.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 13:04:40 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 13:04:40 +0000
commit24210ecbd8ed89268c5f67ecb02440c5fadf98a9 (patch)
tree029692c1ca490c3d2b8223d83ec7b5b1a9b7fe0e /chrome/browser/autofill/autofill_download_unittest.cc
parent4926b7d95ed4783c0c1d6aa5e8043fff5b6d6c47 (diff)
downloadchromium_src-24210ecbd8ed89268c5f67ecb02440c5fadf98a9.zip
chromium_src-24210ecbd8ed89268c5f67ecb02440c5fadf98a9.tar.gz
chromium_src-24210ecbd8ed89268c5f67ecb02440c5fadf98a9.tar.bz2
Switch to composition for TestBrowserThread.
This avoids exposing BrowserThreadImpl internals outside of content/, and goes most of the way to not exposing the fact that underneath, it is a base::Thread. There are only three test files that use the TestBrowserThread::DeprecatedGetThreadObject method. TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8440039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_download_unittest.cc')
-rw-r--r--chrome/browser/autofill/autofill_download_unittest.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/autofill/autofill_download_unittest.cc b/chrome/browser/autofill/autofill_download_unittest.cc
index b90ce98..c8919cc 100644
--- a/chrome/browser/autofill/autofill_download_unittest.cc
+++ b/chrome/browser/autofill/autofill_download_unittest.cc
@@ -71,9 +71,7 @@ class AutofillDownloadTest : public AutofillDownloadManager::Observer,
}
virtual void SetUp() {
- base::Thread::Options options;
- options.message_loop_type = MessageLoop::TYPE_IO;
- io_thread_.StartWithOptions(options);
+ io_thread_.StartIOThread();
profile_.CreateRequestContext();
}
@@ -135,8 +133,7 @@ class AutofillDownloadTest : public AutofillDownloadManager::Observer,
AutofillDownloadManager download_manager_;
private:
- // |request_context_getter_| must be released on the IO thread.
- MessageLoop* io_thread_loop() { return io_thread_.message_loop(); }
+ // The profile's request context must be released on the IO thread.
content::TestBrowserThread io_thread_;
};