OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/message_loop/message_loop_proxy.h" | |
6 #include "content/child/service_worker/service_worker_dispatcher.h" | 5 #include "content/child/service_worker/service_worker_dispatcher.h" |
7 #include "content/child/service_worker/web_service_worker_impl.h" | 6 #include "content/child/service_worker/web_service_worker_impl.h" |
8 #include "content/child/service_worker/web_service_worker_registration_impl.h" | 7 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
9 #include "content/child/thread_safe_sender.h" | 8 #include "content/child/thread_safe_sender.h" |
10 #include "content/common/service_worker/service_worker_messages.h" | 9 #include "content/common/service_worker/service_worker_messages.h" |
11 #include "content/common/service_worker/service_worker_types.h" | 10 #include "content/common/service_worker/service_worker_types.h" |
12 #include "ipc/ipc_sync_message_filter.h" | 11 #include "ipc/ipc_sync_message_filter.h" |
13 #include "ipc/ipc_test_sink.h" | 12 #include "ipc/ipc_test_sink.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 ipc_sink()->GetMessageAt(0)->type()); | 209 ipc_sink()->GetMessageAt(0)->type()); |
211 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, | 210 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, |
212 ipc_sink()->GetMessageAt(1)->type()); | 211 ipc_sink()->GetMessageAt(1)->type()); |
213 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, | 212 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, |
214 ipc_sink()->GetMessageAt(2)->type()); | 213 ipc_sink()->GetMessageAt(2)->type()); |
215 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, | 214 EXPECT_EQ(ServiceWorkerHostMsg_DecrementServiceWorkerRefCount::ID, |
216 ipc_sink()->GetMessageAt(3)->type()); | 215 ipc_sink()->GetMessageAt(3)->type()); |
217 } | 216 } |
218 | 217 |
219 } // namespace content | 218 } // namespace content |
OLD | NEW |