Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4425)

Unified Diff: chrome/common/extensions/extension_manifests_unittest.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update cookie logic in test. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f7c8f27190f4db68310ba85257953b6911cf9e8d..21051b201baed7c8e9bff2048eb4d11e23ebd383 100644
--- a/chrome/common/extensions/extension_manifests_unittest.cc
+++ b/chrome/common/extensions/extension_manifests_unittest.cc
@@ -408,3 +408,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"));
+ ASSERT_FALSE(extension->is_storage_isolated());
Matt Perry 2011/01/26 20:09:23 nit: probably fine to use EXPECT_ here (and below)
Charlie Reis 2011/03/01 21:33:11 Done.
+
+ CommandLine old_command_line = *CommandLine::ForCurrentProcess();
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kEnableExperimentalAppManifests);
+ scoped_refptr<Extension> extension2(
+ LoadAndExpectSuccess("isolated_app_valid.json"));
+ ASSERT_TRUE(extension2->is_storage_isolated());
+ *CommandLine::ForCurrentProcess() = old_command_line;
+}
+

Powered by Google App Engine
This is Rietveld 408576698