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

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

Issue 23717020: Add stubs for brailleDisplayPrivate extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase Created 7 years, 3 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
« no previous file with comments | « chrome/common/extensions/permissions/chrome_api_permissions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // If you've turned on the experimental command-line flag, we don't need 691 // If you've turned on the experimental command-line flag, we don't need
692 // to warn you further. 692 // to warn you further.
693 skip.insert(APIPermission::kExperimental); 693 skip.insert(APIPermission::kExperimental);
694 694
695 // The Identity API has its own server-driven permission prompts. 695 // The Identity API has its own server-driven permission prompts.
696 skip.insert(APIPermission::kIdentity); 696 skip.insert(APIPermission::kIdentity);
697 697
698 // These are private. 698 // These are private.
699 skip.insert(APIPermission::kAutoTestPrivate); 699 skip.insert(APIPermission::kAutoTestPrivate);
700 skip.insert(APIPermission::kBookmarkManagerPrivate); 700 skip.insert(APIPermission::kBookmarkManagerPrivate);
701 skip.insert(APIPermission::kBrailleDisplayPrivate);
701 skip.insert(APIPermission::kChromeosInfoPrivate); 702 skip.insert(APIPermission::kChromeosInfoPrivate);
702 skip.insert(APIPermission::kCloudPrintPrivate); 703 skip.insert(APIPermission::kCloudPrintPrivate);
703 skip.insert(APIPermission::kCommandLinePrivate); 704 skip.insert(APIPermission::kCommandLinePrivate);
704 skip.insert(APIPermission::kDeveloperPrivate); 705 skip.insert(APIPermission::kDeveloperPrivate);
705 skip.insert(APIPermission::kDial); 706 skip.insert(APIPermission::kDial);
706 skip.insert(APIPermission::kDownloadsInternal); 707 skip.insert(APIPermission::kDownloadsInternal);
707 skip.insert(APIPermission::kEchoPrivate); 708 skip.insert(APIPermission::kEchoPrivate);
708 skip.insert(APIPermission::kEnterprisePlatformKeysPrivate); 709 skip.insert(APIPermission::kEnterprisePlatformKeysPrivate);
709 skip.insert(APIPermission::kFeedbackPrivate); 710 skip.insert(APIPermission::kFeedbackPrivate);
710 skip.insert(APIPermission::kFileBrowserHandlerInternal); 711 skip.insert(APIPermission::kFileBrowserHandlerInternal);
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 1437
1437 scoped_refptr<Extension> extension_dwr( 1438 scoped_refptr<Extension> extension_dwr(
1438 LoadManifest("permissions", "web_request_all_host_permissions.json")); 1439 LoadManifest("permissions", "web_request_all_host_permissions.json"));
1439 scoped_refptr<const PermissionSet> permissions_dwr( 1440 scoped_refptr<const PermissionSet> permissions_dwr(
1440 extension_dwr->GetActivePermissions()); 1441 extension_dwr->GetActivePermissions());
1441 1442
1442 EXPECT_FALSE(permissions->HasLessPrivilegesThan(permissions_dwr.get(), 1443 EXPECT_FALSE(permissions->HasLessPrivilegesThan(permissions_dwr.get(),
1443 extension->GetType())); 1444 extension->GetType()));
1444 } 1445 }
1445 } // namespace extensions 1446 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/chrome_api_permissions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698