Index: chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc |
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc |
index ab7a8525804eadc1f05871a09551f7c2d6a31b31..929512da324e7d0d789da0c86c684ae7482f79a6 100644 |
--- a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc |
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc |
@@ -31,13 +31,20 @@ TEST_F(ExtensionManifestTest, PlatformApps) { |
"(theme, app, etc.).", |
extension->install_warnings()[0]); |
- LoadAndExpectError( |
- "init_invalid_platform_app_2.json", |
- extension_manifest_errors::kBackgroundRequiredForPlatformApps); |
- |
- LoadAndExpectError( |
- "init_invalid_platform_app_3.json", |
- extension_manifest_errors::kPlatformAppNeedsManifestVersion2); |
+ Testcase testcases[] = { |
+ Testcase("init_invalid_platform_app_2.json", |
+ errors::kBackgroundRequiredForPlatformApps), |
+ Testcase("init_invalid_platform_app_2.json", |
+ errors::kBackgroundRequiredForPlatformApps), |
+ Testcase("init_invalid_platform_app_3.json", |
+ errors::kPlatformAppNeedsManifestVersion2), |
+ Testcase("init_invalid_platform_app_4.json", |
+ errors::kPlatformAppInvalidBackgroundScripts), |
+ Testcase("init_invalid_platform_app_5.json", |
+ errors::kPlatformAppInvalidBackgroundPage) |
+ }; |
+ RunTestcases(testcases, arraysize(testcases), |
+ EXPECT_TYPE_ERROR); |
} |
TEST_F(ExtensionManifestTest, CertainApisRequirePlatformApps) { |