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

Side by Side Diff: chrome/common/extensions/permissions/permission_set_unittest.cc

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and fixed PermissionsTest. Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/json/json_file_value_serializer.h" 6 #include "base/json/json_file_value_serializer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 skip.insert(APIPermission::kSystemDisplay); 668 skip.insert(APIPermission::kSystemDisplay);
669 skip.insert(APIPermission::kSystemMemory); 669 skip.insert(APIPermission::kSystemMemory);
670 skip.insert(APIPermission::kSystemNetwork); 670 skip.insert(APIPermission::kSystemNetwork);
671 skip.insert(APIPermission::kSystemStorage); 671 skip.insert(APIPermission::kSystemStorage);
672 skip.insert(APIPermission::kTts); 672 skip.insert(APIPermission::kTts);
673 skip.insert(APIPermission::kUnlimitedStorage); 673 skip.insert(APIPermission::kUnlimitedStorage);
674 skip.insert(APIPermission::kWebcamPrivate); 674 skip.insert(APIPermission::kWebcamPrivate);
675 skip.insert(APIPermission::kWebView); 675 skip.insert(APIPermission::kWebView);
676 skip.insert(APIPermission::kWindowShape); 676 skip.insert(APIPermission::kWindowShape);
677 677
678 // These permissions are restricted to extensions force-installed by policy
pneubeck (no reviews) 2014/05/22 17:59:37 @Benjamin, is this OK?
not at google - send to devlin 2014/05/22 18:03:01 is what ok?
pneubeck (no reviews) 2014/05/22 18:06:27 this change to this test. Maybe we could change it
not at google - send to devlin 2014/05/22 18:09:09 as in, is it ok that the platform keys API doesn't
679 // and don't require a prompt, i.e. they're restricted to location 'policy'.
680 skip.insert(APIPermission::kEnterprisePlatformKeys);
681
678 // TODO(erikkay) add a string for this permission. 682 // TODO(erikkay) add a string for this permission.
679 skip.insert(APIPermission::kBackground); 683 skip.insert(APIPermission::kBackground);
680 684
681 skip.insert(APIPermission::kClipboardWrite); 685 skip.insert(APIPermission::kClipboardWrite);
682 686
683 // The cookie permission does nothing unless you have associated host 687 // The cookie permission does nothing unless you have associated host
684 // permissions. 688 // permissions.
685 skip.insert(APIPermission::kCookie); 689 skip.insert(APIPermission::kCookie);
686 690
687 // These are warned as part of host permission checks. 691 // These are warned as part of host permission checks.
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 scoped_refptr<const PermissionSet> permissions_dwr( 1572 scoped_refptr<const PermissionSet> permissions_dwr(
1569 extension_dwr->GetActivePermissions()); 1573 extension_dwr->GetActivePermissions());
1570 1574
1571 EXPECT_FALSE(PermissionMessageProvider::Get()-> 1575 EXPECT_FALSE(PermissionMessageProvider::Get()->
1572 IsPrivilegeIncrease(permissions.get(), 1576 IsPrivilegeIncrease(permissions.get(),
1573 permissions_dwr.get(), 1577 permissions_dwr.get(),
1574 extension->GetType())); 1578 extension->GetType()));
1575 } 1579 }
1576 1580
1577 } // namespace extensions 1581 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698