OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 6 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
7 #include "chrome/common/extensions/extension.h" | 7 #include "chrome/common/extensions/extension.h" |
8 #include "chrome/common/extensions/extension_manifest_constants.h" | 8 #include "chrome/common/extensions/extension_manifest_constants.h" |
9 #include "chrome/common/extensions/manifest.h" | 9 #include "chrome/common/extensions/manifest.h" |
10 #include "chrome/common/extensions/sync_helper.h" | 10 #include "chrome/common/extensions/sync_helper.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 EXPECT_FALSE(sync_helper::IsSyncableExtension(extension.get())); | 259 EXPECT_FALSE(sync_helper::IsSyncableExtension(extension.get())); |
260 } | 260 } |
261 | 261 |
262 TEST_F(ExtensionSyncTypeTest, ExtensionWithPluginPermission) { | 262 TEST_F(ExtensionSyncTypeTest, ExtensionWithPluginPermission) { |
263 scoped_refptr<Extension> extension( | 263 scoped_refptr<Extension> extension( |
264 MakeSyncTestExtensionWithPluginPermission(EXTENSION, GURL(), GURL(), | 264 MakeSyncTestExtensionWithPluginPermission(EXTENSION, GURL(), GURL(), |
265 Manifest::INTERNAL, | 265 Manifest::INTERNAL, |
266 0, base::FilePath(), | 266 0, base::FilePath(), |
267 Extension::NO_FLAGS, true)); | 267 Extension::NO_FLAGS, true)); |
268 if (extension.get()) | 268 if (extension.get()) |
269 EXPECT_FALSE(sync_helper::IsSyncableExtension(extension)); | 269 EXPECT_FALSE(sync_helper::IsSyncableExtension(extension.get())); |
270 } | 270 } |
271 #endif // !defined(OS_CHROMEOS) | 271 #endif // !defined(OS_CHROMEOS) |
272 | 272 |
273 } // namespace extensions | 273 } // namespace extensions |
OLD | NEW |