From fb3f00e6812593772aae33476398b311d1a40900 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Fri, 27 Feb 2009 00:35:11 +0000 Subject: Fixed a unittest that I missed during my previous id format change. TBR=aa Review URL: http://codereview.chromium.org/27248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10542 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_unittest.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'chrome/browser/extensions') diff --git a/chrome/browser/extensions/extension_unittest.cc b/chrome/browser/extensions/extension_unittest.cc index 5001b4f..528a10c 100644 --- a/chrome/browser/extensions/extension_unittest.cc +++ b/chrome/browser/extensions/extension_unittest.cc @@ -170,16 +170,17 @@ TEST(ExtensionTest, InitFromValueValid) { // Test minimal extension input_value.SetInteger(Extension::kFormatVersionKey, 1); - input_value.SetString(Extension::kIdKey, "com.google.myextension"); + input_value.SetString(Extension::kIdKey, + "00123456789ABCDEF0123456789ABCDEF0123456"); input_value.SetString(Extension::kVersionKey, "1.0.0.0"); input_value.SetString(Extension::kNameKey, "my extension"); EXPECT_TRUE(extension.InitFromValue(input_value, &error)); EXPECT_EQ("", error); - EXPECT_EQ("com.google.myextension", extension.id()); + EXPECT_EQ("00123456789ABCDEF0123456789ABCDEF0123456", extension.id()); EXPECT_EQ("1.0.0.0", extension.VersionString()); EXPECT_EQ("my extension", extension.name()); - EXPECT_EQ("chrome-extension://com.google.myextension/", + EXPECT_EQ("chrome-extension://00123456789abcdef0123456789abcdef0123456/", extension.url().spec()); EXPECT_EQ(path.value(), extension.path().value()); } @@ -193,7 +194,8 @@ TEST(ExtensionTest, GetResourceURLAndPath) { Extension extension(path); DictionaryValue input_value; input_value.SetInteger(Extension::kFormatVersionKey, 1); - input_value.SetString(Extension::kIdKey, "com.google.myextension"); + input_value.SetString(Extension::kIdKey, + "00123456789ABCDEF0123456789ABCDEF0123456"); input_value.SetString(Extension::kVersionKey, "1.0.0.0"); input_value.SetString(Extension::kNameKey, "my extension"); EXPECT_TRUE(extension.InitFromValue(input_value, NULL)); -- cgit v1.1