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

Unified Diff: content/browser/service_worker/service_worker_job_unittest.cc

Issue 2309793002: Use modified URLRequest::Read() and delegate methods in /service_worker/ (Closed)
Patch Set: nits Created 4 years, 3 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 | content/browser/service_worker/service_worker_script_cache_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_job_unittest.cc
diff --git a/content/browser/service_worker/service_worker_job_unittest.cc b/content/browser/service_worker/service_worker_job_unittest.cc
index e8b97955341662ee4e0ef3a7ca2eb9ce0fe70f32..7762d424fdbeab5eda1c09c59e7ddacf9e000aca 100644
--- a/content/browser/service_worker/service_worker_job_unittest.cc
+++ b/content/browser/service_worker/service_worker_job_unittest.cc
@@ -859,15 +859,13 @@ class UpdateJobTestHelper
// Spoof caching the script for the initial version.
WriteStringResponse(storage(), resource_id, kMockScriptBody);
version->script_cache_map()->NotifyFinishedCaching(
- script, kMockScriptSize, net::URLRequestStatus(), std::string());
+ script, kMockScriptSize, net::OK, std::string());
} else {
if (script.GetOrigin() == kNoChangeOrigin) {
// Simulate fetching the updated script and finding it's identical to
// the incumbent.
- net::URLRequestStatus status =
- net::URLRequestStatus::FromError(net::ERR_FILE_EXISTS);
version->script_cache_map()->NotifyFinishedCaching(
- script, kMockScriptSize, status, std::string());
+ script, kMockScriptSize, net::ERR_FILE_EXISTS, std::string());
SimulateWorkerScriptLoaded(embedded_worker_id);
return;
}
@@ -875,7 +873,7 @@ class UpdateJobTestHelper
// Spoof caching the script for the new version.
WriteStringResponse(storage(), resource_id, "mock_different_script");
version->script_cache_map()->NotifyFinishedCaching(
- script, kMockScriptSize, net::URLRequestStatus(), std::string());
+ script, kMockScriptSize, net::OK, std::string());
}
EmbeddedWorkerTestHelper::OnStartWorker(
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_script_cache_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698