| Index: chrome/common/extensions/extension_manifests_unittest.cc
|
| diff --git a/chrome/common/extensions/extension_manifests_unittest.cc b/chrome/common/extensions/extension_manifests_unittest.cc
|
| index a6bc71f7021aa09bf754b2152562fbc03f0248f8..7ad4aade767c52d872618ced26444043cb3e378b 100644
|
| --- a/chrome/common/extensions/extension_manifests_unittest.cc
|
| +++ b/chrome/common/extensions/extension_manifests_unittest.cc
|
| @@ -444,3 +444,19 @@ TEST_F(ExtensionManifestTest, TtsProvider) {
|
| EXPECT_EQ("en-US", extension->tts_voices()[0].locale);
|
| EXPECT_EQ("female", extension->tts_voices()[0].gender);
|
| }
|
| +
|
| +TEST_F(ExtensionManifestTest, IsolatedApps) {
|
| + // Requires --enable-experimental-app-manifests
|
| + scoped_refptr<Extension> extension(
|
| + LoadAndExpectSuccess("isolated_app_valid.json"));
|
| + EXPECT_FALSE(extension->is_storage_isolated());
|
| +
|
| + CommandLine old_command_line = *CommandLine::ForCurrentProcess();
|
| + CommandLine::ForCurrentProcess()->AppendSwitch(
|
| + switches::kEnableExperimentalAppManifests);
|
| + scoped_refptr<Extension> extension2(
|
| + LoadAndExpectSuccess("isolated_app_valid.json"));
|
| + EXPECT_TRUE(extension2->is_storage_isolated());
|
| + *CommandLine::ForCurrentProcess() = old_command_line;
|
| +}
|
| +
|
|
|