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 "content/browser/service_worker/embedded_worker_instance.h" | 5 #include "content/browser/service_worker/embedded_worker_instance.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
15 #include "content/browser/service_worker/embedded_worker_registry.h" | 16 #include "content/browser/service_worker/embedded_worker_registry.h" |
16 #include "content/browser/service_worker/embedded_worker_status.h" | 17 #include "content/browser/service_worker/embedded_worker_status.h" |
17 #include "content/browser/service_worker/embedded_worker_test_helper.h" | 18 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
18 #include "content/browser/service_worker/service_worker_context_core.h" | 19 #include "content/browser/service_worker/service_worker_context_core.h" |
19 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 20 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
20 #include "content/browser/service_worker/service_worker_test_utils.h" | 21 #include "content/browser/service_worker/service_worker_test_utils.h" |
21 #include "content/common/service_worker/embedded_worker.mojom.h" | 22 #include "content/common/service_worker/embedded_worker.mojom.h" |
22 #include "content/common/service_worker/embedded_worker_messages.h" | 23 #include "content/common/service_worker/embedded_worker_messages.h" |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 EXPECT_EQ(START_WORKER_MESSAGE_SENT, events_[1].type); | 776 EXPECT_EQ(START_WORKER_MESSAGE_SENT, events_[1].type); |
776 EXPECT_EQ(DETACHED, events_[2].type); | 777 EXPECT_EQ(DETACHED, events_[2].type); |
777 EXPECT_EQ(EmbeddedWorkerStatus::STARTING, events_[2].status); | 778 EXPECT_EQ(EmbeddedWorkerStatus::STARTING, events_[2].status); |
778 } | 779 } |
779 | 780 |
780 INSTANTIATE_TEST_CASE_P(EmbeddedWorkerInstanceTest, | 781 INSTANTIATE_TEST_CASE_P(EmbeddedWorkerInstanceTest, |
781 EmbeddedWorkerInstanceTestP, | 782 EmbeddedWorkerInstanceTestP, |
782 ::testing::Values(false, true)); | 783 ::testing::Values(false, true)); |
783 | 784 |
784 } // namespace content | 785 } // namespace content |
OLD | NEW |