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

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

Issue 10117019: Merge 132065 - Modify IsSyncable to only include Internal items and the Chrome Web Store (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
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
===================================================================
--- chrome/common/extensions/extension_unittest.cc (revision 132783)
+++ chrome/common/extensions/extension_unittest.cc (working copy)
@@ -921,6 +921,18 @@
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