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

Unified Diff: chrome/browser/extensions/extension_info_map_unittest.cc

Issue 10675007: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_info_map_unittest.cc
diff --git a/chrome/browser/extensions/extension_info_map_unittest.cc b/chrome/browser/extensions/extension_info_map_unittest.cc
index 79ec2d485bf37e21ad1cd632be41fb2b83f7b25d..49235ed90a6bec5b012bc93772317c0545e2ee4b 100644
--- a/chrome/browser/extensions/extension_info_map_unittest.cc
+++ b/chrome/browser/extensions/extension_info_map_unittest.cc
@@ -15,6 +15,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
using content::BrowserThread;
+using extensions::APIPermission;
using extensions::Extension;
using WebKit::WebSecurityOrigin;
using WebKit::WebString;
@@ -149,21 +150,21 @@ TEST_F(ExtensionInfoMapTest, CheckPermissions) {
const Extension* match = info_map->extensions().GetExtensionOrAppByURL(
ExtensionURLInfo(app_origin, app->GetResourceURL("a.html")));
EXPECT_TRUE(match &&
- match->HasAPIPermission(ExtensionAPIPermission::kNotification));
+ match->HasAPIPermission(APIPermission::kNotification));
match = info_map->extensions().GetExtensionOrAppByURL(
ExtensionURLInfo(app_origin, app_url));
EXPECT_TRUE(match &&
- match->HasAPIPermission(ExtensionAPIPermission::kNotification));
+ match->HasAPIPermission(APIPermission::kNotification));
EXPECT_FALSE(match &&
- match->HasAPIPermission(ExtensionAPIPermission::kTab));
+ match->HasAPIPermission(APIPermission::kTab));
// The extension should have the tabs permission.
match = info_map->extensions().GetExtensionOrAppByURL(
ExtensionURLInfo(app_origin, extension->GetResourceURL("a.html")));
EXPECT_TRUE(match &&
- match->HasAPIPermission(ExtensionAPIPermission::kTab));
+ match->HasAPIPermission(APIPermission::kTab));
EXPECT_FALSE(match &&
- match->HasAPIPermission(ExtensionAPIPermission::kNotification));
+ match->HasAPIPermission(APIPermission::kNotification));
// Random URL should not have any permissions.
GURL evil_url("http://evil.com/a.html");

Powered by Google App Engine
This is Rietveld 408576698