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

Side by Side Diff: chrome/browser/ui/app_list/app_list_test_util.cc

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/app_list/app_list_test_util.h"
6
7 #include "base/files/file_path.h"
8 #include "chrome/common/chrome_constants.h"
9 #include "extensions/common/extension_set.h"
10
11 const char AppListTestBase::kHostedAppId[] =
12 "dceacbkfkmllgmjmbhgkpjegnodmildf";
13 const char AppListTestBase::kPackagedApp1Id[] =
14 "emfkafnhnpcmabnnkckkchdilgeoekbo";
15 const char AppListTestBase::kPackagedApp2Id[] =
16 "jlklkagmeajbjiobondfhiekepofmljl";
17
18 AppListTestBase::AppListTestBase() {}
19
20 AppListTestBase::~AppListTestBase() {}
21
22 void AppListTestBase::SetUp() {
23 ExtensionServiceTestBase::SetUp();
24
25 // Load "app_list" extensions test profile.
26 // The test profile has 5 extensions:
27 // - 1 dummy extension (which should not be visible in the launcher)
28 // - 2 packaged extension apps
29 // - 1 hosted extension app
30 // - 1 ephemeral app (which should not be visible in the launcher)
31 base::FilePath source_install_dir = data_dir_
32 .AppendASCII("app_list")
33 .AppendASCII("Extensions");
34 base::FilePath pref_path = source_install_dir
35 .DirName()
36 .Append(chrome::kPreferencesFilename);
37 InitializeInstalledExtensionService(pref_path, source_install_dir);
38 service_->Init();
39
40 // There should be 5 extensions in the test profile.
41 const extensions::ExtensionSet* extensions = service_->extensions();
42 ASSERT_EQ(static_cast<size_t>(5), extensions->size());
43 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_test_util.h ('k') | chrome/browser/ui/app_list/extension_app_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698