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

Unified Diff: content/browser/android/url_request_content_job_unittest.cc

Issue 2506303002: Revert of Add a NetworkQualityEstimator to TestURLRequestContext. (Closed)
Patch Set: Created 4 years, 1 month 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 | « chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/url_request_content_job_unittest.cc
diff --git a/content/browser/android/url_request_content_job_unittest.cc b/content/browser/android/url_request_content_job_unittest.cc
index 2667720c0ddee69e84784f7b0ae18514dfc185cd..c87f7e151267c03ef832e7c03bbdfab8d83e3520 100644
--- a/content/browser/android/url_request_content_job_unittest.cc
+++ b/content/browser/android/url_request_content_job_unittest.cc
@@ -10,11 +10,9 @@
#include <memory>
#include "base/files/file_util.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/test_file_util.h"
-#include "base/threading/thread_task_runner_handle.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -44,8 +42,12 @@
const std::string& scheme,
net::URLRequest* request,
net::NetworkDelegate* network_delegate) const override {
- URLRequestContentJob* job = new URLRequestContentJob(
- request, network_delegate, path_, base::ThreadTaskRunnerHandle::Get());
+ URLRequestContentJob* job =
+ new URLRequestContentJob(
+ request,
+ network_delegate,
+ path_,
+ const_cast<base::MessageLoop*>(&message_loop_)->task_runner());
observer_->OnJobCreated();
return job;
}
@@ -76,6 +78,7 @@
}
private:
+ base::MessageLoop message_loop_;
base::FilePath path_;
JobObserver* observer_;
};
@@ -118,7 +121,6 @@
// retrieved.
void RunRequest(const Range* range);
- base::MessageLoop message_loop_;
JobObserverImpl observer_;
net::TestURLRequestContext context_;
net::TestDelegate delegate_;
« no previous file with comments | « chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698