OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "content/browser/fileapi/mock_url_request_delegate.h" | 16 #include "content/browser/fileapi/mock_url_request_delegate.h" |
17 #include "content/browser/service_worker/embedded_worker_test_helper.h" | 17 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
18 #include "content/browser/service_worker/service_worker_context_core.h" | 18 #include "content/browser/service_worker/service_worker_context_core.h" |
19 #include "content/browser/service_worker/service_worker_context_request_handler.
h" | 19 #include "content/browser/service_worker/service_worker_context_request_handler.
h" |
20 #include "content/browser/service_worker/service_worker_disk_cache.h" | 20 #include "content/browser/service_worker/service_worker_disk_cache.h" |
21 #include "content/browser/service_worker/service_worker_provider_host.h" | 21 #include "content/browser/service_worker/service_worker_provider_host.h" |
22 #include "content/browser/service_worker/service_worker_registration.h" | 22 #include "content/browser/service_worker/service_worker_registration.h" |
23 #include "content/browser/service_worker/service_worker_test_utils.h" | 23 #include "content/browser/service_worker/service_worker_test_utils.h" |
24 #include "content/common/resource_request_body.h" | 24 #include "content/common/resource_request_body.h" |
25 #include "content/common/service_worker/service_worker_utils.h" | 25 #include "content/common/service_worker/service_worker_utils.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 mock_protocol_handler_->SetCreateJobCallback( | 608 mock_protocol_handler_->SetCreateJobCallback( |
609 base::Bind(&CreateNormalURLRequestJob)); | 609 base::Bind(&CreateNormalURLRequestJob)); |
610 DisableCache(); | 610 DisableCache(); |
611 request_->Start(); | 611 request_->Start(); |
612 base::RunLoop().RunUntilIdle(); | 612 base::RunLoop().RunUntilIdle(); |
613 EXPECT_EQ(net::URLRequestStatus::FAILED, request_->status().status()); | 613 EXPECT_EQ(net::URLRequestStatus::FAILED, request_->status().status()); |
614 EXPECT_EQ(net::ERR_FAILED, request_->status().error()); | 614 EXPECT_EQ(net::ERR_FAILED, request_->status().error()); |
615 } | 615 } |
616 | 616 |
617 } // namespace content | 617 } // namespace content |
OLD | NEW |