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

Unified Diff: chrome/browser/predictors/resource_prefetcher_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/browser/predictors/resource_prefetcher_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetcher_unittest.cc b/chrome/browser/predictors/resource_prefetcher_unittest.cc
index 865c8afab0dfac2e537076bed7f087e3f637f390..b53dae16c7a612bd461c50f57227fad403c7a82e 100644
--- a/chrome/browser/predictors/resource_prefetcher_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetcher_unittest.cc
@@ -47,7 +47,7 @@ class TestResourcePrefetcher : public ResourcePrefetcher {
// Delegate for ResourcePrefetcher.
class TestResourcePrefetcherDelegate : public ResourcePrefetcher::Delegate {
public:
- explicit TestResourcePrefetcherDelegate(MessageLoop* loop)
+ explicit TestResourcePrefetcherDelegate(base::MessageLoop* loop)
: request_context_getter_(new net::TestURLRequestContextGetter(
loop->message_loop_proxy())) { }
~TestResourcePrefetcherDelegate() { }
@@ -128,7 +128,7 @@ class ResourcePrefetcherTest : public testing::Test {
prefetcher_->OnResponseStarted(GetInFlightRequest(url));
}
- MessageLoop loop_;
+ base::MessageLoop loop_;
content::TestBrowserThread io_thread_;
ResourcePrefetchPredictorConfig config_;
TestResourcePrefetcherDelegate prefetcher_delegate_;
@@ -139,7 +139,7 @@ class ResourcePrefetcherTest : public testing::Test {
};
ResourcePrefetcherTest::ResourcePrefetcherTest()
- : loop_(MessageLoop::TYPE_IO),
+ : loop_(base::MessageLoop::TYPE_IO),
io_thread_(content::BrowserThread::IO, &loop_),
prefetcher_delegate_(&loop_) {
config_.max_prefetches_inflight_per_navigation = 5;

Powered by Google App Engine
This is Rietveld 408576698