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

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

Issue 8417043: Add webkit_glue namespace. Improve some variable and test names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error Created 9 years, 2 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
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | webkit/glue/web_intent_service_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 046c60edfaf7e5a63254d873b108e08f2eb144d0..be4ecceedc114aca9049a187d7d4e5f2064a6b00 100644
--- a/chrome/common/extensions/extension_manifests_unittest.cc
+++ b/chrome/common/extensions/extension_manifests_unittest.cc
@@ -835,29 +835,31 @@ TEST_F(ExtensionManifestTest, WebIntents) {
LoadAndExpectSuccess("intent_valid.json"));
ASSERT_TRUE(extension.get() != NULL);
- ASSERT_EQ(1u, extension->intents().size());
- EXPECT_EQ("image/png", UTF16ToUTF8(extension->intents()[0].type));
+ ASSERT_EQ(1u, extension->intents_services().size());
+ EXPECT_EQ("image/png", UTF16ToUTF8(extension->intents_services()[0].type));
EXPECT_EQ("http://webintents.org/share",
- UTF16ToUTF8(extension->intents()[0].action));
- EXPECT_EQ("chrome-extension", extension->intents()[0].service_url.scheme());
- EXPECT_EQ("///services/share", extension->intents()[0].service_url.path());
+ UTF16ToUTF8(extension->intents_services()[0].action));
+ EXPECT_EQ("chrome-extension",
+ extension->intents_services()[0].service_url.scheme());
+ EXPECT_EQ("///services/share",
+ extension->intents_services()[0].service_url.path());
EXPECT_EQ("Sample Sharing Intent",
- UTF16ToUTF8(extension->intents()[0].title));
- EXPECT_EQ(WebIntentServiceData::DISPOSITION_INLINE,
- extension->intents()[0].disposition);
+ UTF16ToUTF8(extension->intents_services()[0].title));
+ EXPECT_EQ(webkit_glue::WebIntentServiceData::DISPOSITION_INLINE,
+ extension->intents_services()[0].disposition);
// Verify that optional fields are filled with defaults.
extension = LoadAndExpectSuccess("intent_valid_minimal.json");
ASSERT_TRUE(extension.get() != NULL);
- ASSERT_EQ(1u, extension->intents().size());
- EXPECT_EQ("", UTF16ToUTF8(extension->intents()[0].type));
+ ASSERT_EQ(1u, extension->intents_services().size());
+ EXPECT_EQ("", UTF16ToUTF8(extension->intents_services()[0].type));
EXPECT_EQ("http://webintents.org/share",
- UTF16ToUTF8(extension->intents()[0].action));
- EXPECT_TRUE(extension->intents()[0].service_url.is_empty());
- EXPECT_EQ("", UTF16ToUTF8(extension->intents()[0].title));
- EXPECT_EQ(WebIntentServiceData::DISPOSITION_WINDOW,
- extension->intents()[0].disposition);
+ UTF16ToUTF8(extension->intents_services()[0].action));
+ EXPECT_TRUE(extension->intents_services()[0].service_url.is_empty());
+ EXPECT_EQ("", UTF16ToUTF8(extension->intents_services()[0].title));
+ EXPECT_EQ(webkit_glue::WebIntentServiceData::DISPOSITION_WINDOW,
+ extension->intents_services()[0].disposition);
}
TEST_F(ExtensionManifestTest, ForbidPortsInPermissions) {
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | webkit/glue/web_intent_service_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698