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

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

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert sync pref changes Created 7 years, 9 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/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 TEST_F(PermissionsTest, PermissionMessages) { 651 TEST_F(PermissionsTest, PermissionMessages) {
652 // Ensure that all permissions that needs to show install UI actually have 652 // Ensure that all permissions that needs to show install UI actually have
653 // strings associated with them. 653 // strings associated with them.
654 APIPermissionSet skip; 654 APIPermissionSet skip;
655 655
656 // These are considered "nuisance" or "trivial" permissions that don't need 656 // These are considered "nuisance" or "trivial" permissions that don't need
657 // a prompt. 657 // a prompt.
658 skip.insert(APIPermission::kActiveTab); 658 skip.insert(APIPermission::kActiveTab);
659 skip.insert(APIPermission::kAlarms); 659 skip.insert(APIPermission::kAlarms);
660 skip.insert(APIPermission::kAppCurrentWindowInternal); 660 skip.insert(APIPermission::kAppCurrentWindowInternal);
661 skip.insert(APIPermission::kAppNotifications);
662 skip.insert(APIPermission::kAppRuntime); 661 skip.insert(APIPermission::kAppRuntime);
663 skip.insert(APIPermission::kAppWindow); 662 skip.insert(APIPermission::kAppWindow);
664 skip.insert(APIPermission::kBrowsingData); 663 skip.insert(APIPermission::kBrowsingData);
665 skip.insert(APIPermission::kContextMenus); 664 skip.insert(APIPermission::kContextMenus);
666 skip.insert(APIPermission::kFontSettings); 665 skip.insert(APIPermission::kFontSettings);
667 skip.insert(APIPermission::kFullscreen); 666 skip.insert(APIPermission::kFullscreen);
668 skip.insert(APIPermission::kIdle); 667 skip.insert(APIPermission::kIdle);
669 skip.insert(APIPermission::kNotification); 668 skip.insert(APIPermission::kNotification);
670 skip.insert(APIPermission::kPointerLock); 669 skip.insert(APIPermission::kPointerLock);
671 skip.insert(APIPermission::kPushMessaging); 670 skip.insert(APIPermission::kPushMessaging);
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 apis.insert(APIPermission::kWebRequest); 1365 apis.insert(APIPermission::kWebRequest);
1367 apis.insert(APIPermission::kFileBrowserHandler); 1366 apis.insert(APIPermission::kFileBrowserHandler);
1368 EXPECT_EQ(2U, apis.size()); 1367 EXPECT_EQ(2U, apis.size());
1369 1368
1370 scoped_refptr<PermissionSet> perm_set; 1369 scoped_refptr<PermissionSet> perm_set;
1371 perm_set = new PermissionSet(apis, empty_extent, empty_extent); 1370 perm_set = new PermissionSet(apis, empty_extent, empty_extent);
1372 EXPECT_EQ(4U, perm_set->apis().size()); 1371 EXPECT_EQ(4U, perm_set->apis().size());
1373 } 1372 }
1374 1373
1375 } // namespace extensions 1374 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698