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

Unified Diff: chrome/common/chrome_plugin_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
Index: chrome/common/chrome_plugin_unittest.cc
===================================================================
--- chrome/common/chrome_plugin_unittest.cc (revision 30037)
+++ chrome/common/chrome_plugin_unittest.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/path_service.h"
#include "base/string_util.h"
#include "chrome/browser/chrome_plugin_host.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/net/url_request_context_getter.h"
#include "chrome/browser/profile.h"
#include "chrome/common/chrome_plugin_lib.h"
@@ -37,7 +38,8 @@
class ChromePluginTest : public testing::Test, public URLRequest::Delegate {
public:
ChromePluginTest()
- : request_(NULL),
+ : io_thread_(ChromeThread::IO, &message_loop_),
+ request_(NULL),
response_buffer_(new net::IOBuffer(kResponseBufferSize)),
plugin_(NULL),
expected_payload_(NULL),
@@ -85,6 +87,7 @@
}
protected:
MessageLoopForIO message_loop_;
+ ChromeThread io_thread_;
// Note: we use URLRequest (instead of URLFetcher) because this allows the
// request to be intercepted.
« chrome/browser/in_process_webkit/webkit_thread.cc ('K') | « chrome/common/child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698