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

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

Issue 10066014: Modify IsSyncable to only include Internal items and the Chrome Web Store (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_unittest.cc
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
index d04ef8c8f5b7dd6f8630949e532e8bbfd9c35a24..2a397fd30d1c1a6b9a7b72df8f1d82bdfcc64a66 100644
--- a/chrome/common/extensions/extension_unittest.cc
+++ b/chrome/common/extensions/extension_unittest.cc
@@ -935,6 +935,18 @@ TEST(ExtensionTest, OnlyDisplayAppsInLauncher) {
EXPECT_TRUE(app->ShouldDisplayInLauncher());
}
+TEST(ExtensionTest, OnlySyncInternal) {
+ scoped_refptr<Extension> extension_internal(
+ MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
+ Extension::INTERNAL, 0, FilePath()));
+ EXPECT_TRUE(extension_internal->IsSyncable());
+
+ scoped_refptr<Extension> extension_noninternal(
+ MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
+ Extension::COMPONENT, 0, FilePath()));
+ EXPECT_FALSE(extension_noninternal->IsSyncable());
+}
+
TEST(ExtensionTest, ExtensionKeybindingParsing) {
const ui::Accelerator None = ui::Accelerator();
const ui::Accelerator ShiftF =
« 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