Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / shared_module_service_unittest.cc
index 5f223fb..d5fb6ad 100644 (file)
@@ -263,7 +263,11 @@ TEST_F(SharedModuleServiceUnitTest, WhitelistedImports) {
       CreateExtensionImportingModule(shared_module->id(),
                                      nonwhitelisted_id,
                                      "1.0");
-  EXPECT_FALSE(InstallExtension(nonwhitelisted_extension, false));
+  // This should succeed because only CRX installer (and by extension the
+  // WebStore Installer) checks the shared module whitelist.  InstallExtension
+  // bypasses the whitelist check because the SharedModuleService does not
+  // care about whitelists.
+  EXPECT_TRUE(InstallExtension(nonwhitelisted_extension.get(), false));
 }
 
 }  // namespace extensions