OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/common/extensions/features/feature_channel.h" | |
10 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 9 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
11 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
12 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
13 #include "extensions/common/error_utils.h" | 12 #include "extensions/common/error_utils.h" |
14 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
| 14 #include "extensions/common/features/feature_channel.h" |
15 #include "extensions/common/manifest_constants.h" | 15 #include "extensions/common/manifest_constants.h" |
16 #include "extensions/common/manifest_handlers/background_info.h" | 16 #include "extensions/common/manifest_handlers/background_info.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 namespace errors = manifest_errors; | 21 namespace errors = manifest_errors; |
22 namespace keys = manifest_keys; | 22 namespace keys = manifest_keys; |
23 | 23 |
24 class ExtensionManifestBackgroundTest : public ChromeManifestTest { | 24 class ExtensionManifestBackgroundTest : public ChromeManifestTest { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 std::string error; | 136 std::string error; |
137 std::vector<InstallWarning> warnings; | 137 std::vector<InstallWarning> warnings; |
138 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings); | 138 ManifestHandler::ValidateExtension(extension.get(), &error, &warnings); |
139 // The key 'background.persistent' is not supported for packaged apps. | 139 // The key 'background.persistent' is not supported for packaged apps. |
140 EXPECT_EQ(1U, warnings.size()); | 140 EXPECT_EQ(1U, warnings.size()); |
141 EXPECT_EQ(errors::kBackgroundPersistentInvalidForPlatformApps, | 141 EXPECT_EQ(errors::kBackgroundPersistentInvalidForPlatformApps, |
142 warnings[0].message); | 142 warnings[0].message); |
143 } | 143 } |
144 | 144 |
145 } // namespace extensions | 145 } // namespace extensions |
OLD | NEW |