summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_unittest.cc
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
commit83a7d2eb244232d057b245e43ae867ad27493bd1 (patch)
tree2b04a04f09228cb741c24f3e3463f4061779113e /chrome/browser/chrome_plugin_unittest.cc
parent4766b28875c45e5eca6ff16272f85c691e9a181a (diff)
downloadchromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.zip
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.gz
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.bz2
Changed UrlFetcher to use a MessageLoopProxy instead of directly relying on ChromeThread. This will allow us to make UrlFetcher independent of ChromeThread and we can then move it to chrome/common.
BUG=None TEST=UrlFetcher unit-tests Review URL: http://codereview.chromium.org/1702016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_unittest.cc')
-rw-r--r--chrome/browser/chrome_plugin_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/chrome_plugin_unittest.cc b/chrome/browser/chrome_plugin_unittest.cc
index e515966..84d739a 100644
--- a/chrome/browser/chrome_plugin_unittest.cc
+++ b/chrome/browser/chrome_plugin_unittest.cc
@@ -4,6 +4,7 @@
// Tests exercising the Chrome Plugin API.
#include "base/file_util.h"
+#include "base/message_loop_proxy.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "chrome/browser/chrome_plugin_host.h"
@@ -31,6 +32,10 @@ class TestURLRequestContextGetter : public URLRequestContextGetter {
context_ = new TestURLRequestContext();
return context_;
}
+ virtual scoped_refptr<MessageLoopProxy> GetIOMessageLoopProxy() {
+ return ChromeThread::GetMessageLoopProxyForThread(ChromeThread::IO);
+ }
+
private:
~TestURLRequestContextGetter() {}
scoped_refptr<URLRequestContext> context_;
@@ -299,4 +304,3 @@ TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) {
}
} // namespace
-