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

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

Issue 10905005: Change browser/page action default icon defined in manifest to support hidpi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable unittest on android Created 8 years, 3 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_unittest.cc
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
index 5f5c3296b1aecab2b0b23dac62159622aeb13a9a..7529734b74bd22b8acb3706e42e3615469265660 100644
--- a/chrome/common/extensions/extension_unittest.cc
+++ b/chrome/common/extensions/extension_unittest.cc
@@ -229,7 +229,9 @@ TEST(ExtensionTest, LoadPageActionHelper) {
// No title, so fall back to name.
ASSERT_EQ(name, action->GetTitle(1));
- ASSERT_EQ(img1, action->default_icon_path());
+ ASSERT_EQ(img1,
+ action->default_icon()->Get(extension_misc::EXTENSION_ICON_ACTION,
+ ExtensionIconSet::MATCH_EXACTLY));
// Same test with explicitly set type.
action = LoadAction("page_action_type.json");
@@ -256,7 +258,7 @@ TEST(ExtensionTest, LoadPageActionHelper) {
action = LoadAction("page_action_new_format.json");
ASSERT_TRUE(action.get());
ASSERT_EQ(kTitle, action->GetTitle(1));
- ASSERT_FALSE(action->default_icon_path().empty());
+ ASSERT_TRUE(action->default_icon());
// Invalid title should give an error even with a valid name.
LoadActionAndExpectError("page_action_invalid_title.json",

Powered by Google App Engine
This is Rietveld 408576698