Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / extensions / manifest_tests / extension_manifests_launcher_page_unittest.cc
blobe344437a50c420a7c4c09e676cfeb317289a69f0
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 "base/command_line.h"
6 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
7 #include "extensions/common/constants.h"
8 #include "extensions/common/extension.h"
9 #include "extensions/common/features/simple_feature.h"
10 #include "extensions/common/manifest_handlers/launcher_page_info.h"
11 #include "extensions/common/switches.h"
12 #include "testing/gtest/include/gtest/gtest.h"
14 namespace extensions {
16 namespace {
18 // The ID of test manifests requiring whitelisting.
19 const char kWhitelistID[] = "lmadimbbgapmngbiclpjjngmdickadpl";
21 } // namespace
23 typedef ChromeManifestTest LauncherPageManifestTest;
25 TEST_F(LauncherPageManifestTest, ValidLauncherPage) {
26 extensions::SimpleFeature::ScopedWhitelistForTest whitelist(kWhitelistID);
27 scoped_refptr<extensions::Extension> extension(
28 LoadAndExpectSuccess("init_valid_launcher_page.json"));
29 ASSERT_TRUE(extension.get());
30 extensions::LauncherPageInfo* info =
31 extensions::LauncherPageHandler::GetInfo(extension.get());
32 ASSERT_TRUE(info);
33 EXPECT_EQ("test.html", info->page);
36 } // namespace extensions