| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "content/browser/browser_thread_impl.h" | 12 #include "content/browser/browser_thread_impl.h" |
| 13 #include "content/browser/service_worker/service_worker_context_core.h" | 13 #include "content/browser/service_worker/service_worker_context_core.h" |
| 14 #include "content/browser/service_worker/service_worker_disk_cache.h" | 14 #include "content/browser/service_worker/service_worker_disk_cache.h" |
| 15 #include "content/browser/service_worker/service_worker_registration.h" | 15 #include "content/browser/service_worker/service_worker_registration.h" |
| 16 #include "content/browser/service_worker/service_worker_storage.h" | 16 #include "content/browser/service_worker/service_worker_storage.h" |
| 17 #include "content/browser/service_worker/service_worker_utils.h" | |
| 18 #include "content/browser/service_worker/service_worker_version.h" | 17 #include "content/browser/service_worker/service_worker_version.h" |
| 19 #include "content/common/service_worker/service_worker_status_code.h" | 18 #include "content/common/service_worker/service_worker_status_code.h" |
| 19 #include "content/common/service_worker/service_worker_utils.h" |
| 20 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
| 21 #include "ipc/ipc_message.h" | 21 #include "ipc/ipc_message.h" |
| 22 #include "net/base/io_buffer.h" | 22 #include "net/base/io_buffer.h" |
| 23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
| 24 #include "net/base/test_completion_callback.h" | 24 #include "net/base/test_completion_callback.h" |
| 25 #include "net/http/http_response_headers.h" | 25 #include "net/http/http_response_headers.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using net::IOBuffer; | 28 using net::IOBuffer; |
| 29 using net::TestCompletionCallback; | 29 using net::TestCompletionCallback; |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 storage()->NotifyDoneInstallingRegistration( | 1467 storage()->NotifyDoneInstallingRegistration( |
| 1468 live_registration3.get(), NULL, SERVICE_WORKER_OK); | 1468 live_registration3.get(), NULL, SERVICE_WORKER_OK); |
| 1469 | 1469 |
| 1470 // Find a registration among installed ones. | 1470 // Find a registration among installed ones. |
| 1471 EXPECT_EQ(SERVICE_WORKER_OK, | 1471 EXPECT_EQ(SERVICE_WORKER_OK, |
| 1472 FindRegistrationForDocument(kDocumentUrl, &found_registration)); | 1472 FindRegistrationForDocument(kDocumentUrl, &found_registration)); |
| 1473 EXPECT_EQ(live_registration2, found_registration); | 1473 EXPECT_EQ(live_registration2, found_registration); |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 } // namespace content | 1476 } // namespace content |
| OLD | NEW |