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

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

Issue 10754014: Wallpaper manager backend APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a crash when try to cancel previous request which had finished. Add more error message. Created 8 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 (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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 skip.insert(APIPermission::kChromeosInfoPrivate); 586 skip.insert(APIPermission::kChromeosInfoPrivate);
587 skip.insert(APIPermission::kFileBrowserHandlerInternal); 587 skip.insert(APIPermission::kFileBrowserHandlerInternal);
588 skip.insert(APIPermission::kFileBrowserPrivate); 588 skip.insert(APIPermission::kFileBrowserPrivate);
589 skip.insert(APIPermission::kInputMethodPrivate); 589 skip.insert(APIPermission::kInputMethodPrivate);
590 skip.insert(APIPermission::kManagedModePrivate); 590 skip.insert(APIPermission::kManagedModePrivate);
591 skip.insert(APIPermission::kMediaPlayerPrivate); 591 skip.insert(APIPermission::kMediaPlayerPrivate);
592 skip.insert(APIPermission::kMetricsPrivate); 592 skip.insert(APIPermission::kMetricsPrivate);
593 skip.insert(APIPermission::kEchoPrivate); 593 skip.insert(APIPermission::kEchoPrivate);
594 skip.insert(APIPermission::kSystemPrivate); 594 skip.insert(APIPermission::kSystemPrivate);
595 skip.insert(APIPermission::kTerminalPrivate); 595 skip.insert(APIPermission::kTerminalPrivate);
596 skip.insert(APIPermission::kWallpaperManagerPrivate);
596 skip.insert(APIPermission::kWebRequestInternal); 597 skip.insert(APIPermission::kWebRequestInternal);
597 skip.insert(APIPermission::kWebSocketProxyPrivate); 598 skip.insert(APIPermission::kWebSocketProxyPrivate);
598 skip.insert(APIPermission::kWebstorePrivate); 599 skip.insert(APIPermission::kWebstorePrivate);
599 600
600 // Warned as part of host permissions. 601 // Warned as part of host permissions.
601 skip.insert(APIPermission::kDevtools); 602 skip.insert(APIPermission::kDevtools);
602 603
603 // Platform apps. TODO(miket): must we skip? 604 // Platform apps. TODO(miket): must we skip?
604 skip.insert(APIPermission::kFileSystem); 605 skip.insert(APIPermission::kFileSystem);
605 skip.insert(APIPermission::kSocket); 606 skip.insert(APIPermission::kSocket);
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 perm_set = new PermissionSet( 1117 perm_set = new PermissionSet(
1117 empty_apis, non_empty_extent, empty_extent); 1118 empty_apis, non_empty_extent, empty_extent);
1118 EXPECT_FALSE(perm_set->IsEmpty()); 1119 EXPECT_FALSE(perm_set->IsEmpty());
1119 1120
1120 perm_set = new PermissionSet( 1121 perm_set = new PermissionSet(
1121 empty_apis, empty_extent, non_empty_extent); 1122 empty_apis, empty_extent, non_empty_extent);
1122 EXPECT_FALSE(perm_set->IsEmpty()); 1123 EXPECT_FALSE(perm_set->IsEmpty());
1123 } 1124 }
1124 1125
1125 } // namespace extensions 1126 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698