Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / app_list / app_list_test_util.cc
blobe67800b71e1ed72e87c10eb1823464da138fd56b
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.
5 #include "chrome/browser/ui/app_list/app_list_test_util.h"
7 #include "base/files/file_path.h"
8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/common/chrome_constants.h"
10 #include "extensions/browser/extension_registry.h"
11 #include "extensions/common/extension_set.h"
13 const char AppListTestBase::kHostedAppId[] =
14 "dceacbkfkmllgmjmbhgkpjegnodmildf";
15 const char AppListTestBase::kPackagedApp1Id[] =
16 "emfkafnhnpcmabnnkckkchdilgeoekbo";
17 const char AppListTestBase::kPackagedApp2Id[] =
18 "jlklkagmeajbjiobondfhiekepofmljl";
20 AppListTestBase::AppListTestBase() {}
22 AppListTestBase::~AppListTestBase() {}
24 void AppListTestBase::SetUp() {
25 extensions::ExtensionServiceTestBase::SetUp();
27 // Load "app_list" extensions test profile.
28 // The test profile has 5 extensions:
29 // - 1 dummy extension (which should not be visible in the launcher)
30 // - 2 packaged extension apps
31 // - 1 hosted extension app
32 // - 1 ephemeral app (which should not be visible in the launcher)
33 base::FilePath source_install_dir =
34 data_dir().AppendASCII("app_list").AppendASCII("Extensions");
35 base::FilePath pref_path = source_install_dir
36 .DirName()
37 .Append(chrome::kPreferencesFilename);
38 InitializeInstalledExtensionService(pref_path, source_install_dir);
39 service_->Init();
41 // There should be 5 extensions in the test profile.
42 ASSERT_EQ(5U, registry()->enabled_extensions().size());