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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 10 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/test/browser_test_utils.h" | 28 #include "content/public/test/browser_test_utils.h" |
29 #include "content/public/test/content_browser_test.h" | 29 #include "content/public/test/content_browser_test.h" |
30 #include "content/public/test/content_browser_test_utils.h" | 30 #include "content/public/test/content_browser_test_utils.h" |
31 #include "content/shell/browser/shell.h" | 31 #include "content/shell/browser/shell.h" |
32 #include "net/test/embedded_test_server/embedded_test_server.h" | 32 #include "net/test/embedded_test_server/embedded_test_server.h" |
33 #include "net/test/embedded_test_server/http_request.h" | 33 #include "net/test/embedded_test_server/http_request.h" |
34 #include "net/test/embedded_test_server/http_response.h" | 34 #include "net/test/embedded_test_server/http_response.h" |
35 #include "net/url_request/url_request_filter.h" | 35 #include "net/url_request/url_request_filter.h" |
36 #include "net/url_request/url_request_interceptor.h" | 36 #include "net/url_request/url_request_interceptor.h" |
37 #include "net/url_request/url_request_test_job.h" | 37 #include "net/url_request/url_request_test_job.h" |
| 38 #include "storage/browser/blob/blob_data_handle.h" |
| 39 #include "storage/browser/blob/blob_storage_context.h" |
38 #include "storage/common/blob/blob_data.h" | 40 #include "storage/common/blob/blob_data.h" |
39 #include "webkit/browser/blob/blob_data_handle.h" | |
40 #include "webkit/browser/blob/blob_storage_context.h" | |
41 | 41 |
42 namespace content { | 42 namespace content { |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 struct FetchResult { | 46 struct FetchResult { |
47 ServiceWorkerStatusCode status; | 47 ServiceWorkerStatusCode status; |
48 ServiceWorkerFetchEventResult result; | 48 ServiceWorkerFetchEventResult result; |
49 ServiceWorkerResponse response; | 49 ServiceWorkerResponse response; |
50 scoped_ptr<storage::BlobDataHandle> blob_data_handle; | 50 scoped_ptr<storage::BlobDataHandle> blob_data_handle; |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 RunOnIOThread( | 946 RunOnIOThread( |
947 base::Bind(&ServiceWorkerBlackBoxBrowserTest::FindRegistrationOnIO, | 947 base::Bind(&ServiceWorkerBlackBoxBrowserTest::FindRegistrationOnIO, |
948 this, | 948 this, |
949 embedded_test_server()->GetURL("/service_worker/empty.html"), | 949 embedded_test_server()->GetURL("/service_worker/empty.html"), |
950 &status)); | 950 &status)); |
951 EXPECT_EQ(SERVICE_WORKER_ERROR_NOT_FOUND, status); | 951 EXPECT_EQ(SERVICE_WORKER_ERROR_NOT_FOUND, status); |
952 } | 952 } |
953 } | 953 } |
954 | 954 |
955 } // namespace content | 955 } // namespace content |
OLD | NEW |