chromium/components/permissions/test/permission_request_observer.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_PERMISSIONS_TEST_PERMISSION_REQUEST_OBSERVER_H_
#define COMPONENTS_PERMISSIONS_TEST_PERMISSION_REQUEST_OBSERVER_H_

#include "base/run_loop.h"
#include "base/scoped_observation.h"
#include "components/permissions/permission_request_manager.h"

namespace permissions {

// Observer for use in tests that want to detect whether a permission request
// was shown.  Can be used in a blocking or non-blocking way.
class PermissionRequestObserver : public PermissionRequestManager::Observer {};

}  // namespace permissions

#endif  // COMPONENTS_PERMISSIONS_TEST_PERMISSION_REQUEST_OBSERVER_H_