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

Side by Side Diff: chrome/common/extensions/extension_unittest.cc

Issue 2846034: Split out the bookmark permission into its own line in ExtensionInstallUI. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 bool expect_success; 816 bool expect_success;
817 } kTests[] = { 817 } kTests[] = {
818 { "allhosts1", false }, // all -> all 818 { "allhosts1", false }, // all -> all
819 { "allhosts2", false }, // all -> one 819 { "allhosts2", false }, // all -> one
820 { "allhosts3", true }, // one -> all 820 { "allhosts3", true }, // one -> all
821 { "hosts1", false }, // http://a,http://b -> http://a,http://b 821 { "hosts1", false }, // http://a,http://b -> http://a,http://b
822 { "hosts2", false }, // http://a,http://b -> https://a,http://*.b 822 { "hosts2", false }, // http://a,http://b -> https://a,http://*.b
823 { "hosts3", false }, // http://a,http://b -> http://a 823 { "hosts3", false }, // http://a,http://b -> http://a
824 { "hosts4", true }, // http://a -> http://a,http://b 824 { "hosts4", true }, // http://a -> http://a,http://b
825 { "permissions1", false }, // tabs -> tabs 825 { "permissions1", false }, // tabs -> tabs
826 { "permissions2", false }, // tabs -> tabs,bookmarks 826 { "permissions2", true }, // tabs -> tabs,bookmarks
827 { "permissions3", true }, // http://a -> http://a,tabs 827 { "permissions3", true }, // http://a -> http://a,tabs
828 { "permissions4", false }, // plugin -> plugin,tabs 828 { "permissions4", false }, // plugin -> plugin,tabs
829 { "plugin1", false }, // plugin -> plugin 829 { "plugin1", false }, // plugin -> plugin
830 { "plugin2", false }, // plugin -> none 830 { "plugin2", false }, // plugin -> none
831 { "plugin3", true }, // none -> plugin 831 { "plugin3", true }, // none -> plugin
832 { "storage", false }, // none -> storage 832 { "storage", false }, // none -> storage
833 { "notifications", false } // none -> notifications 833 { "notifications", false } // none -> notifications
834 }; 834 };
835 835
836 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) { 836 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTests); ++i) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 extension->SetCachedImage(resource, image, original_size); 923 extension->SetCachedImage(resource, image, original_size);
924 EXPECT_TRUE(extension->HasCachedImage(resource, original_size)); 924 EXPECT_TRUE(extension->HasCachedImage(resource, original_size));
925 EXPECT_TRUE(extension->HasCachedImage(resource, size128)); 925 EXPECT_TRUE(extension->HasCachedImage(resource, size128));
926 EXPECT_TRUE(SizeEquals(extension->GetCachedImage(resource, original_size), 926 EXPECT_TRUE(SizeEquals(extension->GetCachedImage(resource, original_size),
927 original_size)); 927 original_size));
928 EXPECT_TRUE(SizeEquals(extension->GetCachedImage(resource, size128), 928 EXPECT_TRUE(SizeEquals(extension->GetCachedImage(resource, size128),
929 original_size)); 929 original_size));
930 EXPECT_EQ(extension->GetCachedImage(resource, original_size).getPixels(), 930 EXPECT_EQ(extension->GetCachedImage(resource, original_size).getPixels(),
931 extension->GetCachedImage(resource, size128).getPixels()); 931 extension->GetCachedImage(resource, size128).getPixels());
932 } 932 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698