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 "content/browser/devtools/shared_worker_devtools_manager.h" | 5 #include "content/browser/devtools/shared_worker_devtools_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
10 #include "content/browser/browser_thread_impl.h" | 13 #include "content/browser/browser_thread_impl.h" |
11 #include "content/browser/devtools/devtools_agent_host_impl.h" | 14 #include "content/browser/devtools/devtools_agent_host_impl.h" |
12 #include "content/browser/devtools/shared_worker_devtools_agent_host.h" | 15 #include "content/browser/devtools/shared_worker_devtools_agent_host.h" |
13 #include "content/browser/shared_worker/shared_worker_instance.h" | 16 #include "content/browser/shared_worker/shared_worker_instance.h" |
14 #include "content/browser/shared_worker/worker_storage_partition.h" | 17 #include "content/browser/shared_worker/worker_storage_partition.h" |
15 #include "content/public/test/test_browser_context.h" | 18 #include "content/public/test/test_browser_context.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 manager_->WorkerCreated(3, 2, instance); | 288 manager_->WorkerCreated(3, 2, instance); |
286 CheckWorkerState(3, 2, WorkerState::WORKER_UNINSPECTED); | 289 CheckWorkerState(3, 2, WorkerState::WORKER_UNINSPECTED); |
287 agent_host = NULL; | 290 agent_host = NULL; |
288 CheckWorkerState(3, 2, WorkerState::WORKER_UNINSPECTED); | 291 CheckWorkerState(3, 2, WorkerState::WORKER_UNINSPECTED); |
289 manager_->WorkerDestroyed(3, 2); | 292 manager_->WorkerDestroyed(3, 2); |
290 CheckWorkerNotExist(3, 2); | 293 CheckWorkerNotExist(3, 2); |
291 CheckWorkerCount(0); | 294 CheckWorkerCount(0); |
292 } | 295 } |
293 | 296 |
294 } // namespace content | 297 } // namespace content |
OLD | NEW |