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

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

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | chrome/service/cloud_print/printer_job_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698