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

Unified Diff: chrome/browser/autocomplete/search_provider_unittest.cc

Issue 306032: Simplify threading in browser thread by making only ChromeThread deal with di... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: a few more simplifications Created 11 years, 2 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 | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/browser_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider_unittest.cc
===================================================================
--- chrome/browser/autocomplete/search_provider_unittest.cc (revision 30037)
+++ chrome/browser/autocomplete/search_provider_unittest.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/time.h"
#include "build/build_config.h"
#include "chrome/browser/autocomplete/search_provider.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/net/test_url_fetcher_factory.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -31,7 +32,10 @@
term1_(L"term1"),
keyword_t_url_(NULL),
keyword_term_(L"keyword"),
- quit_when_done_(false) {}
+ io_thread_(ChromeThread::IO),
darin (slow to review) 2009/10/27 00:06:52 does this test thread need to be a real IO thread?
jam 2009/10/27 02:38:18 It already had a MessageLoopForUI before. I just
jam 2009/10/27 02:46:29 oops, I realize what you mean now. I needed a Chr
darin (slow to review) 2009/10/27 04:43:33 OK
+ quit_when_done_(false) {
+ io_thread_.Start();
+ }
// See description above class for what this registers.
virtual void SetUp();
@@ -62,11 +66,12 @@
const std::wstring keyword_term_;
GURL keyword_url_;
+ MessageLoopForUI message_loop_;
+ ChromeThread io_thread_;
+
// URLFetcher::Factory implementation registered.
TestURLFetcherFactory test_factory_;
- MessageLoopForUI message_loop_;
-
// Profile we use.
TestingProfile profile_;
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/browser_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698