summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 00:35:11 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 00:35:11 +0000
commitfb3f00e6812593772aae33476398b311d1a40900 (patch)
treef65bf0600c254ae6ea66f62aecf94991553572b2 /chrome/browser/extensions
parenta8b10e4972af7f75c59112c9f075c011a9c52f34 (diff)
downloadchromium_src-fb3f00e6812593772aae33476398b311d1a40900.zip
chromium_src-fb3f00e6812593772aae33476398b311d1a40900.tar.gz
chromium_src-fb3f00e6812593772aae33476398b311d1a40900.tar.bz2
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
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_unittest.cc10
1 files changed, 6 insertions, 4 deletions
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));