blob: 4d5dd2fe276cedb5f449bff08bd35ea46ef2f2b8 [file] [log] [blame]
Devlin Cronin8f9c7d852018-04-20 23:25:081// Copyright 2018 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/extensions/extension_browsertest.h"
6#include "extensions/browser/extension_registry.h"
7
8namespace extensions {
9
10using ComponentExtensionsTest = ExtensionBrowserTest;
11
12// Tests that the mobile_app component extension loads. It would be nice to get
13// rid of this (see https://crbug.com/835391), but for now let's at least make
14// sure it is added correctly.
15IN_PROC_BROWSER_TEST_F(ComponentExtensionsTest, LoadsMobileAppExtension) {
16 constexpr char kMobileActivationExtensionId[] =
17 "iadeocfgjdjdmpenejdbfeaocpbikmab";
18 EXPECT_TRUE(ExtensionRegistry::Get(profile())->enabled_extensions().Contains(
19 kMobileActivationExtensionId));
20}
21
22} // namespace extensions