// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module blink.test.mojom;
import "third_party/blink/public/mojom/permissions/permission.mojom";
import "third_party/blink/public/mojom/permissions/permission_status.mojom";
import "url/mojom/url.mojom";
// Provides a way for tests to change the permission returned to permission
// requests of a certain type (via the PermissionService interface).
// See https://w3c.github.io/permissions/#automation
interface PermissionAutomation {
// Sets the permission for |descriptor| to |status| when queried or requested
// in |origin| from |embedding_origin|.
SetPermission(blink.mojom.PermissionDescriptor descriptor,
blink.mojom.PermissionStatus status,
url.mojom.Url origin,
url.mojom.Url embedding_origin) => (bool success);
};