Index: chrome/common/extensions/manifest_unittest.cc |
diff --git a/chrome/common/extensions/manifest_unittest.cc b/chrome/common/extensions/manifest_unittest.cc |
index 6805022084232b0858a18ae6e67ef2b6bd3dcebf..8845ae017db30bc4a3adafc405bf9917f6d46e9f 100644 |
--- a/chrome/common/extensions/manifest_unittest.cc |
+++ b/chrome/common/extensions/manifest_unittest.cc |
@@ -36,6 +36,8 @@ class ManifestTest : public testing::Test { |
EXPECT_EQ(type == Manifest::TYPE_LEGACY_PACKAGED_APP, |
manifest->is_legacy_packaged_app()); |
EXPECT_EQ(type == Manifest::TYPE_HOSTED_APP, manifest->is_hosted_app()); |
+ EXPECT_EQ(type == Manifest::TYPE_SHARED_MODULE, |
+ manifest->is_shared_module()); |
} |
// Helper function that replaces the Manifest held by |manifest| with a copy |
@@ -138,6 +140,13 @@ TEST_F(ManifestTest, ExtensionTypes) { |
MutateManifest( |
&manifest, keys::kTheme, NULL); |
+ // Shared module. |
+ MutateManifest( |
+ &manifest, keys::kExport, new base::DictionaryValue()); |
+ AssertType(manifest.get(), Manifest::TYPE_SHARED_MODULE); |
+ MutateManifest( |
+ &manifest, keys::kExport, NULL); |
+ |
// Packaged app. |
MutateManifest( |
&manifest, keys::kApp, new base::DictionaryValue()); |