Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: chrome/browser/apps/ephemeral_app_service_browsertest.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_service.cc ('k') | chrome/browser/apps/ephemeral_app_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698