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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "chrome/browser/apps/app_browsertest_util.h" | 7 #include "chrome/browser/apps/app_browsertest_util.h" |
8 #include "chrome/browser/apps/ephemeral_app_service.h" | 8 #include "chrome/browser/apps/ephemeral_app_service.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/extension_system.h" | |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
13 #include "extensions/browser/extension_prefs.h" | 12 #include "extensions/browser/extension_prefs.h" |
| 13 #include "extensions/browser/extension_system.h" |
14 #include "extensions/common/manifest.h" | 14 #include "extensions/common/manifest.h" |
15 | 15 |
16 using extensions::PlatformAppBrowserTest; | 16 using extensions::PlatformAppBrowserTest; |
17 using extensions::Extension; | 17 using extensions::Extension; |
18 using extensions::ExtensionPrefs; | 18 using extensions::ExtensionPrefs; |
19 using extensions::ExtensionSystem; | 19 using extensions::ExtensionSystem; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const int kNumTestApps = 2; | 23 const int kNumTestApps = 2; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 content::Source<Profile>(browser()->profile())); | 85 content::Source<Profile>(browser()->profile())); |
86 GarbageCollectEphemeralApps(); | 86 GarbageCollectEphemeralApps(); |
87 uninstall_signal.Wait(); | 87 uninstall_signal.Wait(); |
88 | 88 |
89 ExtensionService* service = ExtensionSystem::Get(browser()->profile()) | 89 ExtensionService* service = ExtensionSystem::Get(browser()->profile()) |
90 ->extension_service(); | 90 ->extension_service(); |
91 EXPECT_TRUE(service); | 91 EXPECT_TRUE(service); |
92 EXPECT_FALSE(service->GetInstalledExtension(inactive_app_id)); | 92 EXPECT_FALSE(service->GetInstalledExtension(inactive_app_id)); |
93 EXPECT_TRUE(service->GetInstalledExtension(active_app_id)); | 93 EXPECT_TRUE(service->GetInstalledExtension(active_app_id)); |
94 } | 94 } |
OLD | NEW |