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

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

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another merge before retrying commit. Created 8 years, 4 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 TEST(PermissionsTest, PermissionMessages) { 534 TEST(PermissionsTest, PermissionMessages) {
535 // Ensure that all permissions that needs to show install UI actually have 535 // Ensure that all permissions that needs to show install UI actually have
536 // strings associated with them. 536 // strings associated with them.
537 APIPermissionSet skip; 537 APIPermissionSet skip;
538 538
539 // These are considered "nuisance" or "trivial" permissions that don't need 539 // These are considered "nuisance" or "trivial" permissions that don't need
540 // a prompt. 540 // a prompt.
541 skip.insert(APIPermission::kActiveTab); 541 skip.insert(APIPermission::kActiveTab);
542 skip.insert(APIPermission::kAlarms); 542 skip.insert(APIPermission::kAlarms);
543 skip.insert(APIPermission::kAppNotifications); 543 skip.insert(APIPermission::kAppNotifications);
544 skip.insert(APIPermission::kAppRuntime);
544 skip.insert(APIPermission::kAppWindow); 545 skip.insert(APIPermission::kAppWindow);
545 skip.insert(APIPermission::kBrowserTag); 546 skip.insert(APIPermission::kBrowserTag);
546 skip.insert(APIPermission::kBrowsingData); 547 skip.insert(APIPermission::kBrowsingData);
547 skip.insert(APIPermission::kContextMenus); 548 skip.insert(APIPermission::kContextMenus);
548 skip.insert(APIPermission::kFontSettings); 549 skip.insert(APIPermission::kFontSettings);
549 skip.insert(APIPermission::kIdle); 550 skip.insert(APIPermission::kIdle);
550 skip.insert(APIPermission::kNotification); 551 skip.insert(APIPermission::kNotification);
551 skip.insert(APIPermission::kUnlimitedStorage); 552 skip.insert(APIPermission::kUnlimitedStorage);
552 skip.insert(APIPermission::kStorage); 553 skip.insert(APIPermission::kStorage);
553 skip.insert(APIPermission::kTts); 554 skip.insert(APIPermission::kTts);
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 apis.insert(APIPermission::kWebRequest); 1148 apis.insert(APIPermission::kWebRequest);
1148 apis.insert(APIPermission::kFileBrowserHandler); 1149 apis.insert(APIPermission::kFileBrowserHandler);
1149 EXPECT_EQ(2U, apis.size()); 1150 EXPECT_EQ(2U, apis.size());
1150 1151
1151 scoped_refptr<PermissionSet> perm_set; 1152 scoped_refptr<PermissionSet> perm_set;
1152 perm_set = new PermissionSet(apis, empty_extent, empty_extent); 1153 perm_set = new PermissionSet(apis, empty_extent, empty_extent);
1153 EXPECT_EQ(4U, perm_set->apis().size()); 1154 EXPECT_EQ(4U, perm_set->apis().size());
1154 } 1155 }
1155 1156
1156 } // namespace extensions 1157 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.cc ('k') | chrome/renderer/extensions/app_runtime_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698