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 <stdint.h> | 5 #include <stdint.h> |
6 #include <tuple> | 6 #include <tuple> |
7 | 7 |
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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/message_loop/message_loop.h" |
11 #include "base/optional.h" | 12 #include "base/optional.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/test/test_simple_task_runner.h" | 14 #include "base/test/test_simple_task_runner.h" |
14 #include "base/time/time.h" | 15 #include "base/time/time.h" |
15 #include "content/browser/browser_thread_impl.h" | 16 #include "content/browser/browser_thread_impl.h" |
16 #include "content/browser/service_worker/embedded_worker_registry.h" | 17 #include "content/browser/service_worker/embedded_worker_registry.h" |
17 #include "content/browser/service_worker/embedded_worker_status.h" | 18 #include "content/browser/service_worker/embedded_worker_status.h" |
18 #include "content/browser/service_worker/embedded_worker_test_helper.h" | 19 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
19 #include "content/browser/service_worker/service_worker_context_core.h" | 20 #include "content/browser/service_worker/service_worker_context_core.h" |
20 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 21 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 // should not be promoted to ACTIVATED because failure occur | 1801 // should not be promoted to ACTIVATED because failure occur |
1801 // during shutdown. | 1802 // during shutdown. |
1802 runner->RunUntilIdle(); | 1803 runner->RunUntilIdle(); |
1803 base::RunLoop().RunUntilIdle(); | 1804 base::RunLoop().RunUntilIdle(); |
1804 EXPECT_EQ(new_version.get(), registration->active_version()); | 1805 EXPECT_EQ(new_version.get(), registration->active_version()); |
1805 EXPECT_EQ(ServiceWorkerVersion::ACTIVATING, new_version->status()); | 1806 EXPECT_EQ(ServiceWorkerVersion::ACTIVATING, new_version->status()); |
1806 registration->RemoveListener(update_helper); | 1807 registration->RemoveListener(update_helper); |
1807 } | 1808 } |
1808 | 1809 |
1809 } // namespace content | 1810 } // namespace content |
OLD | NEW |