| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
| 6 #include "chrome/browser/automation/automation_util.h" | |
| 7 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
| 8 #include "chrome/browser/extensions/extension_host.h" | 7 #include "chrome/browser/extensions/extension_host.h" |
| 9 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/extensions/extension_system.h" | 10 #include "chrome/browser/extensions/extension_system.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 14 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 16 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 234 |
| 236 // We've loaded 5 extensions with background pages, 1 extension without | 235 // We've loaded 5 extensions with background pages, 1 extension without |
| 237 // background page, and one isolated app. We expect only 2 unique processes | 236 // background page, and one isolated app. We expect only 2 unique processes |
| 238 // hosting those extensions. | 237 // hosting those extensions. |
| 239 ExtensionService* service = | 238 ExtensionService* service = |
| 240 extensions::ExtensionSystem::Get(profile)->extension_service(); | 239 extensions::ExtensionSystem::Get(profile)->extension_service(); |
| 241 | 240 |
| 242 EXPECT_GE((size_t) 6, service->process_map()->size()); | 241 EXPECT_GE((size_t) 6, service->process_map()->size()); |
| 243 EXPECT_EQ((size_t) 2, process_ids.size()); | 242 EXPECT_EQ((size_t) 2, process_ids.size()); |
| 244 } | 243 } |
| OLD | NEW |