Devlin Cronin | 8f9c7d85 | 2018-04-20 23:25:08 | [diff] [blame] | 1 | // 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 | |
| 8 | namespace extensions { |
| 9 | |
| 10 | using 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. |
| 15 | IN_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 |