#ifndef CHROME_BROWSER_EXTENSIONS_PERMISSIONS_PERMISSIONS_TEST_UTIL_H_
#define CHROME_BROWSER_EXTENSIONS_PERMISSIONS_PERMISSIONS_TEST_UTIL_H_
#include <string>
#include <vector>
#include "chrome/browser/extensions/permissions/permissions_updater.h"
namespace content {
class BrowserContext;
}
namespace extensions {
class Extension;
class PermissionSet;
class URLPatternSet;
namespace permissions_test_util {
std::vector<std::string> GetPatternsAsStrings(const URLPatternSet& patterns);
void GrantOptionalPermissionsAndWaitForCompletion(
content::BrowserContext* browser_context,
const Extension& extension,
const PermissionSet& permissions);
void GrantRuntimePermissionsAndWaitForCompletion(
content::BrowserContext* browser_context,
const Extension& extension,
const PermissionSet& permissions);
void RevokeOptionalPermissionsAndWaitForCompletion(
content::BrowserContext* browser_context,
const Extension& extension,
const PermissionSet& permissions,
PermissionsUpdater::RemoveType remove_type);
void RevokeRuntimePermissionsAndWaitForCompletion(
content::BrowserContext* browser_context,
const Extension& extension,
const PermissionSet& permissions);
}
}
#endif